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.
This commit is contained in:
Salt 2021-03-11 09:19:55 -06:00
parent e1d625391e
commit 7a98174297

View File

@ -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