library/roles/smartgears/r_connector: Fix the behaviour when we have to connect as a remote user different than root.

This commit is contained in:
Andrea Dell'Amico 2017-03-17 13:17:13 +01:00
parent bdd8d9bc86
commit 36fbd99291
2 changed files with 10 additions and 1 deletions

View File

@ -2,3 +2,6 @@
- name: Restart the NSLCD service
service: name=nslcd state=restarted
- name: Restart the NSCD service
service: name=nscd state=restarted

View File

@ -55,6 +55,10 @@
with_items: '{{ r_connector_ldap_map_common }}'
notify: Restart the NSLCD service
- name: Create the ldap-auth-config directory
file: dest=/etc/auth-client-config/profile.d state=directory
notify: Restart the NSLCD service
- name: Install the ldap-auth-config file
copy: src=ldap-auth-config dest=/etc/auth-client-config/profile.d/ldap-auth-config
notify: Restart the NSLCD service
@ -65,7 +69,9 @@
- name: Install the nslcd configuration
template: src=nslcd.conf.j2 dest=/etc/nslcd.conf mode=0640 owner=root group=nslcd
notify: Restart the NSLCD service
notify:
- Restart the NSLCD service
- Restart the NSCD service
when:
- r_connector_install