Ensure Ansible user has the right perms

This was causing issues when I migrated home directories across machines
This commit is contained in:
Salt 2020-07-08 00:45:14 -05:00
parent 1da2e625b5
commit 41225985fd

View File

@ -9,6 +9,12 @@
password_lock: yes
system: yes
become: yes
- name: Ensure perms on Ansible user home
file:
path: "/home/ansible"
mode: "0700"
owner: ansible
group: ansible
- name: Add Ansible key to user
authorized_key:
user: ansible