ansible/roles/wheel/tasks/sudo.yml

12 lines
240 B
YAML
Raw Normal View History

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
community.general.sudoers:
commands: ALL
group: wheel
name: wheel
nopassword: true