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:
path: "/home/ansible"
mode: "0700"
- name: Ensure ownership of Ansible user home
file:
path: "/home/ansible"
owner: ansible
group: ansible
recurse: yes
- name: Add Ansible key to user
authorized_key:
user: ansible