Better manage user sudo
/ lint (push) Failing after 1m36s Details

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"
create: true
validate: visudo -cf %s
mode: 0644
mode: 0640
changed_when: false
- name: Install chaotic AUR

View File

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