From 36fbd99291ddb564f9a29a36f0e7b1bbaf28ae6f Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 17 Mar 2017 13:17:13 +0100 Subject: [PATCH] library/roles/smartgears/r_connector: Fix the behaviour when we have to connect as a remote user different than root. --- smartgears/r_connector/handlers/main.yml | 3 +++ smartgears/r_connector/tasks/main.yml | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/smartgears/r_connector/handlers/main.yml b/smartgears/r_connector/handlers/main.yml index 6c4f1b80..8d198b7a 100644 --- a/smartgears/r_connector/handlers/main.yml +++ b/smartgears/r_connector/handlers/main.yml @@ -2,3 +2,6 @@ - name: Restart the NSLCD service service: name=nslcd state=restarted +- name: Restart the NSCD service + service: name=nscd state=restarted + diff --git a/smartgears/r_connector/tasks/main.yml b/smartgears/r_connector/tasks/main.yml index 18418d5f..2ae544ab 100644 --- a/smartgears/r_connector/tasks/main.yml +++ b/smartgears/r_connector/tasks/main.yml @@ -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