switched back to the use of variable
This commit is contained in:
@@ -27,13 +27,13 @@
|
||||
- name: users | {{ user }} | getent user home directory
|
||||
getent:
|
||||
database: passwd
|
||||
key: "root"
|
||||
key: "{{ user }}"
|
||||
split: ":"
|
||||
fail_key: no
|
||||
|
||||
- name: users | root | copy ~/validate-rsync.sh
|
||||
copy:
|
||||
dest: "{{ getent_passwd["root"][4] }}/validate-rsync.sh"
|
||||
dest: "{{ getent_passwd[user][4] }}/validate-rsync.sh"
|
||||
src: "validate-rsync.sh"
|
||||
mode: "0744"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user