Ansible user home in /home
This commit is contained in:
parent
5bef64c3c0
commit
bb6c96ebf0
|
|
@ -20,7 +20,7 @@
|
||||||
# Uncomment to prevent password reset
|
# Uncomment to prevent password reset
|
||||||
update_password: on_create
|
update_password: on_create
|
||||||
system: yes
|
system: yes
|
||||||
home: /srv/ansible
|
home: /home/ansible
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Set ansible user as sudoer
|
- name: Set ansible user as sudoer
|
||||||
|
|
@ -53,8 +53,8 @@
|
||||||
# e.g. fabio
|
# e.g. fabio
|
||||||
|
|
||||||
- name: Create the .ssh directory
|
- name: Create the .ssh directory
|
||||||
file: path=/srv/ansible/.ssh owner=ansible group=ansible mode=0700 state=directory
|
file: path=/home/ansible/.ssh owner=ansible group=ansible mode=0700 state=directory
|
||||||
|
|
||||||
- name: Add the mandatory ssh keys to the ansible user
|
- name: Add the mandatory ssh keys to the ansible user
|
||||||
template: src=library/templates/ansible_auth_keys.j2 dest=/srv/ansible/.ssh/authorized_keys owner=ansible group=ansible mode=0600
|
template: src=library/templates/ansible_auth_keys.j2 dest=/home/ansible/.ssh/authorized_keys owner=ansible group=ansible mode=0644
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue