From 655d8c15b5f8c2be2dc6bfd9a87057b5d384312b Mon Sep 17 00:00:00 2001 From: Salt Date: Sat, 17 Oct 2020 18:47:37 -0500 Subject: [PATCH] Configure ansible user home Turns out we need to ensure that, I guess --- roles/common/tasks/ansible.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/common/tasks/ansible.yml b/roles/common/tasks/ansible.yml index d32b396..72e857e 100644 --- a/roles/common/tasks/ansible.yml +++ b/roles/common/tasks/ansible.yml @@ -4,6 +4,8 @@ block: - name: create ansible user user: name=ansible password_lock=yes + - name: configure ansible user home directory + 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