From 557ea36b0e61b5b47d8a3f1a7fadf63e120c1ee1 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Wed, 21 Sep 2022 17:43:21 +0200 Subject: [PATCH] sudo: allow to impersonate users --- roles/wheel/tasks/sudo.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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