From 7a9817429744816fe36615ccb8d1a27f3fdd5d26 Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 11 Mar 2021 09:19:55 -0600 Subject: [PATCH] Do not recursively own Ansible user home This works around a bug with a recursive symlink in the sshd role. With that symlink, ansible-pull fails as it recurses through its own repo infinitely. --- roles/common/tasks/ansible.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/tasks/ansible.yml b/roles/common/tasks/ansible.yml index e0bc6a3..1ed2043 100644 --- a/roles/common/tasks/ansible.yml +++ b/roles/common/tasks/ansible.yml @@ -3,7 +3,7 @@ - name: create ansible user user: name=ansible password_lock=yes - name: configure ansible user home directory - file: path=/home/ansible owner=ansible group=ansible recurse=yes + file: path=/home/ansible owner=ansible group=ansible - name: configure ansible user keys authorized_key: user=ansible manage_dir=yes key={{ common_ansible_pubkey }} - name: configure ansible user sudo