diff --git a/roles/users/tasks/main.yml b/roles/users/tasks/main.yml index 692bb46..8d1cbb9 100644 --- a/roles/users/tasks/main.yml +++ b/roles/users/tasks/main.yml @@ -16,7 +16,7 @@ - name: Enable sudoers.d subdir ansible.builtin.lineinfile: path: /etc/sudoers - regexp: '^#includedir /etc/sudoers.d' + regexp: '^#includedir' line: 'includedir /etc/sudoers.d' validate: 'visudo -cf %s'