Also ensure Ansible owns EVERYTHING in their home dir

This commit is contained in:
Salt 2020-07-08 00:47:13 -05:00
parent 41225985fd
commit ead19311c2

View File

@ -13,8 +13,12 @@
file: file:
path: "/home/ansible" path: "/home/ansible"
mode: "0700" mode: "0700"
- name: Ensure ownership of Ansible user home
file:
path: "/home/ansible"
owner: ansible owner: ansible
group: ansible group: ansible
recurse: yes
- name: Add Ansible key to user - name: Add Ansible key to user
authorized_key: authorized_key:
user: ansible user: ansible