wheel for sudo too

main
Ricard Illa 2022-09-04 17:15:52 +02:00
parent d73f488ebb
commit a5f9d164a7
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
2 changed files with 15 additions and 0 deletions

View File

@ -6,3 +6,7 @@
- name: 'alpine-specific wheel things'
include_tasks: alpine.yml
when: ansible_distribution == "Alpine"
- name: setup with sudo
include_tasks: sudo.yml
when: ansible_distribution in ["Debian", "Ubuntu"]

View File

@ -0,0 +1,11 @@
- 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