2022-09-04 17:25:14 +02:00
|
|
|
---
|
2022-09-04 17:15:52 +02:00
|
|
|
- name: install sudo
|
|
|
|
apt:
|
|
|
|
name: sudo
|
|
|
|
when: ansible_distribution in ["Debian", "Ubuntu"]
|
|
|
|
|
|
|
|
- name: allow wheel sudo without password
|
2022-09-21 17:43:21 +02:00
|
|
|
copy:
|
|
|
|
dest: /etc/sudoers.d/wheel
|
|
|
|
content: "%wheel ALL=(ALL) NOPASSWD: ALL"
|
|
|
|
mode: '0440'
|
|
|
|
owner: root
|