logo

amavisd

One minute to read

ansible

One minute to read

ansibleでユーザー追加

- name: add a sudo user
  lineinfile: "dest=/etc/sudoers backup=yes state=present regexp='^ユーザー名' line='wlansible ALL=(ALL) NOPASSWD: ALL'"

- name: add a user to ssh config
  lineinfile: "dest=/etc/ssh/sshd_config backup=yes state=present regexp='^AllowUsers ユーザー名' line='AllowUsers ユーザー名'"
- name: service restart sshd
  service: name=sshd state=restarted

- name: create directory
  file: path=/home/ユーザー名/.ssh state=directory owner=ユーザー名 group=ユーザー名 mode=0700

- name: copy file
  copy: src=  

/ansible/tmp/authorized_keys dest=/home/ユーザー名/.ssh/authorized_keys owner=ユーザー名 group=ユーザー名 mode=0700

One minute to read

ansibleのトラブルシュート

無視して良いそうです…。EPELの現行バージョンのバグだそう。 トラブル2 [#xc91cbeb]

One minute to read