initial commit
This commit is contained in:
commit
2eb3785445
1 changed files with 19 additions and 0 deletions
19
tasks/main.yml
Normal file
19
tasks/main.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
- name: "Add backup group"
|
||||
ansible.builtin.group:
|
||||
name: backup
|
||||
state: present
|
||||
|
||||
- name: "Add backup users"
|
||||
ansible.builtin.user:
|
||||
name: "{{ item.name }}"
|
||||
groups: "backup"
|
||||
state: present
|
||||
loop: "{{ backup_users }}"
|
||||
|
||||
- name: "Add keys for backup users"
|
||||
ansible.posix.authorized_key:
|
||||
user: "{{ item.0.name }}"
|
||||
key: "{{ item.1 }}"
|
||||
with_subelements:
|
||||
- "{{ backup_users }}"
|
||||
- keys
|
Loading…
Add table
Reference in a new issue