Remove `sss` directive for `sudoers` in `/etc/nsswitch.conf` file (#1).

This commit is contained in:
Jeremy Gardais 2017-08-21 16:27:36 +02:00
parent 775927e8d5
commit 9ff911e980
4 changed files with 17 additions and 0 deletions

View File

@ -1,4 +1,9 @@
## v1.1.1
### Fix
* Remove `sss` directive for `sudoers` in `/etc/nsswitch.conf` file (#1).
## v1.1
### Fix

View File

@ -23,6 +23,7 @@ Highly inspired by [Lae's system_ldap role][lae sssd galaxy] with minors updates
* **sssd_main_conf_tpl**: Template used to generate the previous config file [default: `etc/sssd/sssd.conf.j2`].
* **sssd_mkhomedir**: If home directories should be created at login [default: `true`].
* **sssd_home_path**: Path where home directories are stored [default: `/home`].
* **sssd_sudoers_ldap**: If sudo must look to `sss` the list of sudoers [default: `false`].
* **sssd_service_name**: SSSD's service name [default: `sssd`].
### OS Specific Variables
@ -59,6 +60,7 @@ This role will:
* Install needed packages to provide `sssd`.
* Manage the default `sssd` configuration file (`/etc/sssd/sssd.conf`).
* Create an additionnal configuration file to only store the bind_password (`/etc/sssd/conf.d/domain.bind.conf`).
* Remove `sss` directive for `sudoers` in `/etc/nsswitch.conf` file.
* Manage `sssd` service.
## Development

View File

@ -10,6 +10,8 @@ sssd_main_conf_tpl: 'etc/sssd/sssd.conf.j2'
sssd_mkhomedir: true
sssd_home_path: '/home'
sssd_sudoers_ldap: false
# LDAP info
sssd_domain: ''
sssd_schema: 'rfc2307bis'

View File

@ -15,6 +15,14 @@
state: "{{ sssd_pkg_state }}"
with_items: "{{ sssd_pkg_list }}"
# Update nsswitch.conf
- name: CONFIG sudoers nsswitch.conf
lineinfile:
dest: /etc/nsswitch.conf
regexp: '^sudoers:.*sss'
line: 'sudoers: files'
when: not sssd_sudoers_ldap
# Configuration file
- name: CONFIG sssd.conf
template: