nsswitch.conf is modified only is `sssd_nsswitch_manage` is set (fix #5).

This commit is contained in:
Jeremy Gardais 2018-01-29 16:11:49 +01:00
parent 2b4c123983
commit 93bb488176
4 changed files with 11 additions and 2 deletions

View File

@ -1,4 +1,9 @@
## v1.2
### Enhancement
* nsswitch.conf is modified only is `sssd_nsswitch_manage` is set (fix #5).
## v1.1.4
### Enhancement

View File

@ -24,6 +24,7 @@ Highly inspired by [Lae's system_ldap role][lae sssd galaxy] with minors updates
* **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_nsswitch_manage**: If nsswitch should be managed by the role [default: `false`].
* **sssd_service_name**: SSSD's service name [default: `sssd`].
* **sssd_flush_handlers**: If handlers need to be applied at the end of the role [default: `False`].
@ -68,7 +69,7 @@ This role will:
* Install needed packages to provide `sssd`.
* Manage the default `sssd` configuration file (`/etc/sssd/sssd.conf`).
* Create an additional 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.
* Remove `sss` directive for `sudoers` in `/etc/nsswitch.conf` file if `sssd_nsswitch_manage` is set.
* Manage `sssd` service.
* Restart `systemd-logind` service.

View File

@ -20,6 +20,9 @@ sssd_search_base: ''
sssd_bind_dn: ''
sssd_bind_password: ''
# nsswitch configuration
sssd_nsswitch_manage: false
# Service
sssd_service_name: 'sssd'
sssd_flush_handlers: False

View File

@ -25,7 +25,7 @@
owner: root
group: root
mode: 0644
when: not sssd_sudoers_ldap
when: not sssd_sudoers_ldap and sssd_nsswitch_manage
# Configuration file
- name: CONFIG sssd.conf