Ensure to add only one time the sudoers line in `/etc/nsswitch.conf` file (fix #3).

This commit is contained in:
Jeremy Gardais 2017-09-07 13:46:52 +02:00
parent 2e80bce18b
commit 820c7659b0
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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