further testing

This commit is contained in:
2022-02-21 00:43:02 +01:00
parent e9321f3d30
commit d8ee7a7673

View File

@@ -1,9 +1,10 @@
- name: users | {{ user }} | debug - name: users | {{ user }} | getent
getent: getent:
database: passwd database: passwd
key: "{{ user }}" key: "{{ user }}"
split: ":" split: ":"
fail_key: no # not required. If a supplied key is missing this will make the task fail if C(yes). fail_key: no # not required. If a supplied key is missing this will make the task fail if C(yes).
- name: users | {{ user }} | debug
debug: debug:
msg: "user: {{ user }}; homedir: {{ getent_passwd[user][4] }}" msg: "user: {{ user }}; homedir: {{ getent_passwd[user][4] }}"