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
|
||||
system: 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
|
||||
authorized_key:
|
||||
user: ansible
|
||||
|
Loading…
Reference in New Issue
Block a user