get homedir
This commit is contained in:
@@ -24,6 +24,13 @@
|
||||
with_file:
|
||||
- public_keys/backup_ed25519.pub
|
||||
|
||||
- name: users | {{ user }} | getent user home directory
|
||||
getent:
|
||||
database: passwd
|
||||
key: "root"
|
||||
split: ":"
|
||||
fail_key: no
|
||||
|
||||
- name: users | root | copy ~/validate-rsync.sh
|
||||
copy:
|
||||
dest: "{{ getent_passwd[user][4] }}/validate-rsync.sh"
|
||||
|
||||
Reference in New Issue
Block a user