From a686970b0f1b7fc8116637194da05028b4cf070e Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 27 Jun 2022 16:33:42 +0200 Subject: [PATCH] [sudo] Replace # by @ Signed-off-by: Yohann D'ANELLO --- roles/sudo/tasks/main.yml | 4 ++++ roles/sudo/templates/sudoers.j2 | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/sudo/tasks/main.yml b/roles/sudo/tasks/main.yml index 2701c68..7099762 100644 --- a/roles/sudo/tasks/main.yml +++ b/roles/sudo/tasks/main.yml @@ -1,4 +1,8 @@ --- +- name: Install sudo + apt: + name: sudo + - name: Configure sudoers template: src: "{{ item }}.j2" diff --git a/roles/sudo/templates/sudoers.j2 b/roles/sudo/templates/sudoers.j2 index 82e086a..55dfca7 100644 --- a/roles/sudo/templates/sudoers.j2 +++ b/roles/sudo/templates/sudoers.j2 @@ -22,6 +22,6 @@ root ALL=(ALL:ALL) ALL USERS ALL=(root:ALL) NOPASSWD:/usr/sbin/qm list {% endif %} -# See sudoers(5) for more information on "#include" directives: +# See sudoers(5) for more information on "@include" directives: -#includedir /etc/sudoers.d +@includedir /etc/sudoers.d