Some checks failed
checks-test / Lint (push) Successful in 17s
checks-test / molecule (rockylinux10) (push) Failing after 1s
checks-test / molecule (rockylinux9) (push) Failing after 2s
checks-test / molecule (ubuntu2204) (push) Failing after 2s
checks-test / molecule (ubuntu2404) (push) Failing after 2s
checks-test / molecule (debian11) (push) Successful in 1m52s
checks-test / molecule (debian12) (push) Successful in 1m53s
checks-test / molecule (debian13) (push) Successful in 1m49s
Reviewed-on: #5 Co-authored-by: Mykhailo Nikiforov <mn@palkoi.net> Co-committed-by: Mykhailo Nikiforov <mn@palkoi.net>
14 lines
411 B
YAML
14 lines
411 B
YAML
---
|
|
- name: Create groups
|
|
ansible.builtin.include_tasks: group.yml
|
|
with_items: "{{ users_groups.keys() }}"
|
|
loop_control:
|
|
loop_var: group
|
|
|
|
- name: Create users
|
|
ansible.builtin.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
|