Ensure to add only one time the sudoers line in `/etc/nsswitch.conf` file (fix #3).
This commit is contained in:
parent
2e80bce18b
commit
820c7659b0
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
* For Debian Stretch ensure to also install `ca-certificates` (fix #2).
|
* For Debian Stretch ensure to also install `ca-certificates` (fix #2).
|
||||||
|
* Ensure to add only one time the sudoers line in `/etc/nsswitch.conf` file (fix #3).
|
||||||
|
|
||||||
## v1.1.1
|
## v1.1.1
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,12 @@
|
||||||
- name: CONFIG sudoers nsswitch.conf
|
- name: CONFIG sudoers nsswitch.conf
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/nsswitch.conf
|
dest: /etc/nsswitch.conf
|
||||||
regexp: '^sudoers:.*sss'
|
state: present
|
||||||
|
regexp: '^sudoers:'
|
||||||
line: 'sudoers: files'
|
line: 'sudoers: files'
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
when: not sssd_sudoers_ldap
|
when: not sssd_sudoers_ldap
|
||||||
|
|
||||||
# Configuration file
|
# Configuration file
|
||||||
|
|
Loading…
Reference in New Issue