2024-02-16 18:01:26 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Add ssh keys for root
|
2024-02-17 11:11:57 +02:00
|
|
|
ansible.builtin.include_tasks: root_sshkeys.yml
|
2024-02-16 18:01:26 +02:00
|
|
|
|
|
|
|
- name: Install sudo as it's needed for 'become'
|
|
|
|
ansible.builtin.package:
|
|
|
|
name: sudo
|
|
|
|
state: present
|
2024-02-18 09:52:10 +02:00
|
|
|
|
|
|
|
- name: Setup firewall
|
|
|
|
ansible.builtin.include_tasks: firewall.yml
|
|
|
|
when: firewall is defined
|
2024-02-20 09:48:10 +02:00
|
|
|
|
|
|
|
- name: Provision users
|
|
|
|
ansible.builtin.include_role:
|
|
|
|
name: user
|
|
|
|
vars:
|
|
|
|
user: "{{ user_item.key }}" # noqa:var-naming[no-role-prefix]
|
|
|
|
loop_control:
|
|
|
|
loop_var: user_item
|
|
|
|
with_items:
|
|
|
|
- "{{ users | dict2items }}"
|