roles/users/tasks/main.yml aktualisiert
This commit is contained in:
parent
2adb90c8ab
commit
2c96e63d8b
1 changed files with 18 additions and 0 deletions
|
|
@ -42,6 +42,13 @@
|
||||||
groups: admins,webadmins
|
groups: admins,webadmins
|
||||||
append: true
|
append: true
|
||||||
|
|
||||||
|
- name: Ensure user "etige" exists
|
||||||
|
ansible.builtin.user:
|
||||||
|
name: etige
|
||||||
|
shell: /bin/bash
|
||||||
|
groups: admins,webadmins
|
||||||
|
append: true
|
||||||
|
|
||||||
- name: Set up authorized keys for user lea
|
- name: Set up authorized keys for user lea
|
||||||
ansible.posix.authorized_key:
|
ansible.posix.authorized_key:
|
||||||
user: lea
|
user: lea
|
||||||
|
|
@ -65,3 +72,14 @@
|
||||||
key: '{{ item }}'
|
key: '{{ item }}'
|
||||||
with_file:
|
with_file:
|
||||||
- public_keys/rulrich
|
- public_keys/rulrich
|
||||||
|
|
||||||
|
- name: Set up authorized keys for user etige
|
||||||
|
ansible.posix.authorized_key:
|
||||||
|
user: etige
|
||||||
|
state: present
|
||||||
|
key: '{{ item }}'
|
||||||
|
with_file:
|
||||||
|
- public_keys/etige
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue