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