fix: enable includedir directive
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Markus Pesch 2022-05-10 14:06:13 +02:00
parent b997726f4f
commit 93fe0a4826
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -9,6 +9,17 @@
state: present state: present
with_items: "{{ sudo_users_package_names }}" with_items: "{{ sudo_users_package_names }}"
- name: Enable includedir directive
lineinfile:
dest: /etc/sudoers
state: present
regexp: "^(#)+(\\s)*includedir(\\s)*/etc/sudoers.d"
line: "#includedir /etc/sudoers.d"
validate: 'visudo --check --file %s'
mode: 0440
owner: root
group: root
- name: Flush drop-in files of sudoers.d - name: Flush drop-in files of sudoers.d
file: file:
state: "{{ item }}" state: "{{ item }}"