Ensure Ansible user has the right perms
This was causing issues when I migrated home directories across machines
This commit is contained in:
parent
1da2e625b5
commit
41225985fd
@ -9,6 +9,12 @@
|
|||||||
password_lock: yes
|
password_lock: yes
|
||||||
system: yes
|
system: yes
|
||||||
become: yes
|
become: yes
|
||||||
|
- name: Ensure perms on Ansible user home
|
||||||
|
file:
|
||||||
|
path: "/home/ansible"
|
||||||
|
mode: "0700"
|
||||||
|
owner: ansible
|
||||||
|
group: ansible
|
||||||
- name: Add Ansible key to user
|
- name: Add Ansible key to user
|
||||||
authorized_key:
|
authorized_key:
|
||||||
user: ansible
|
user: ansible
|
||||||
|
Loading…
Reference in New Issue
Block a user