fix: enable includedir directive
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b997726f4f
commit
93fe0a4826
@ -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 }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user