Passwordless sudo is a price to pay
This commit is contained in:
parent
fd059b87f8
commit
e4c228b34c
|
@ -10,3 +10,5 @@
|
|||
name: "{{ aur_packages }}"
|
||||
state: present
|
||||
use: "{{ aur_helper }}"
|
||||
become: true
|
||||
become_user: "{{ user.name }}"
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user