diff --git a/roles/common/tasks/ansibleuser.yml b/roles/common/tasks/ansibleuser.yml index 5a0b6c2..152f08d 100644 --- a/roles/common/tasks/ansibleuser.yml +++ b/roles/common/tasks/ansibleuser.yml @@ -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