feat(role): init
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

This commit is contained in:
2024-01-14 19:04:48 +02:00
commit be7b37ee2e
15 changed files with 334 additions and 0 deletions

11
tasks/main.yml Normal file
View File

@@ -0,0 +1,11 @@
---
- 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