Updated arch config

This commit is contained in:
Michael Mandl 2021-01-28 14:27:05 +01:00
parent 7bacbc8662
commit d2b7c0fd5d
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
10 changed files with 119 additions and 30 deletions

View file

@ -0,0 +1,22 @@
---
- name: install sudo
package:
name:
- sudo
state: latest
- name: add user to sudoer group
user:
name: "{{ account.name }}"
groups: "{{ sudo_group }}"
append: yes
- name: activate sudoers group
lineinfile:
dest: /etc/sudoers
state: present
regexp: "^%{{ sudo_group }}"
line: "%{{ sudo_group }} ALL=(ALL) ALL"
insertafter: "^#\\s*%{{ sudo_group }}"
firstmatch: true
validate: "visudo -cf %s"