Better manage user sudo
Some checks failed
/ lint (push) Failing after 1m36s

This commit is contained in:
Jake Howard 2023-07-29 11:34:45 +01:00
parent ba8f398ac3
commit 1f1da2d77d
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 5 additions and 2 deletions

View file

@ -37,7 +37,7 @@
line: "aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman" line: "aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman"
create: true create: true
validate: visudo -cf %s validate: visudo -cf %s
mode: 0644 mode: 0640
changed_when: false changed_when: false
- name: Install chaotic AUR - name: Install chaotic AUR

View file

@ -21,5 +21,8 @@
- name: Give user sudo access - name: Give user sudo access
lineinfile: lineinfile:
path: /etc/sudoers path: /etc/sudoers.d/00_jake
line: "{{ user }} ALL=(ALL) ALL" line: "{{ user }} ALL=(ALL) ALL"
create: true
validate: visudo -cf %s
mode: 0640