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