get homedir
This commit is contained in:
@@ -24,6 +24,13 @@
|
|||||||
with_file:
|
with_file:
|
||||||
- public_keys/backup_ed25519.pub
|
- 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
|
- name: users | root | copy ~/validate-rsync.sh
|
||||||
copy:
|
copy:
|
||||||
dest: "{{ getent_passwd[user][4] }}/validate-rsync.sh"
|
dest: "{{ getent_passwd[user][4] }}/validate-rsync.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user