mirror of
https://git.local.zernis.ch/simon/homeserver.zernis.ch.git
synced 2025-12-15 17:59:41 +01:00
fixed add user to sudo not being idempotent
This commit is contained in:
@@ -11,7 +11,12 @@
|
||||
name: "{{ user['name'] }}"
|
||||
password: "{{ user['password'] }}"
|
||||
shell: /bin/bash
|
||||
|
||||
- name: Add user "{{ user['name'] }}" to sudo group
|
||||
ansible.builtin.user:
|
||||
name: "{{ user['name'] }}"
|
||||
groups: sudo
|
||||
append: yes
|
||||
|
||||
- name: Set system timezone
|
||||
community.general.timezone:
|
||||
|
||||
Reference in New Issue
Block a user