Files
ansible-role-users/tasks/main.yml
Mykhailo Nikiforov be7b37ee2e
Some checks failed
checks-test / Lint (push) Failing after 34s
checks-test / molecule (rockylinux9) (push) Failing after 2m53s
checks-test / molecule (ubuntu2204) (push) Failing after 2m45s
checks-test / molecule (debian11) (push) Successful in 3m50s
feat(role): init
2024-01-14 19:04:48 +02:00

12 lines
326 B
YAML

---
- include_tasks: group.yml
with_items: "{{ users_groups.keys() }}"
loop_control:
loop_var: group
- include_tasks: user.yml
when: ansible_default_ipv4.address in users[username]['passwords'] or users[username]['passwords'].get('default')
with_items: "{{ users.keys() }}"
loop_control:
loop_var: username