diff --git a/roles/wheel/tasks/sudo.yml b/roles/wheel/tasks/sudo.yml index fe7fe4c..d021fb7 100644 --- a/roles/wheel/tasks/sudo.yml +++ b/roles/wheel/tasks/sudo.yml @@ -5,8 +5,8 @@ when: ansible_distribution in ["Debian", "Ubuntu"] - name: allow wheel sudo without password - community.general.sudoers: - commands: ALL - group: wheel - name: wheel - nopassword: true + copy: + dest: /etc/sudoers.d/wheel + content: "%wheel ALL=(ALL) NOPASSWD: ALL" + mode: '0440' + owner: root