roles/users/tasks/main.yml aktualisiert #27

Merged
rulrich merged 1 commit from rulrich-patch-3 into main 2026-03-18 21:10:41 +01:00

View file

@ -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