Passwordless sudo is a price to pay

This commit is contained in:
Ariejan de Vroom 2024-06-06 22:58:27 +02:00
parent fd059b87f8
commit e4c228b34c
Signed by: ariejan
GPG Key ID: AD739154F713697B
2 changed files with 4 additions and 2 deletions

View File

@ -9,4 +9,6 @@
kewlfft.aur.aur:
name: "{{ aur_packages }}"
state: present
use: "{{ aur_helper }}"
use: "{{ aur_helper }}"
become: true
become_user: "{{ user.name }}"

View File

@ -22,6 +22,6 @@
- name: Setup sudo
ansible.builtin.copy:
dest: /etc/sudoers.d/{{ user.name }}
content: "{{ user.name }} ALL=(ALL:ALL) ALL"
content: "{{ user.name }} ALL=(ALL:ALL) NOPASSWD: ALL"
mode: 0440
validate: /usr/sbin/visudo -cf %s