Skip to content
Snippets Groups Projects
Commit 87e3449a authored by Fabio Santaniello's avatar Fabio Santaniello
Browse files

fixing sssd ldap auth with centos7 - fix ldap.conf and restart service

parent 82a9aee8
No related branches found
No related tags found
No related merge requests found
......@@ -65,15 +65,15 @@
- restart sssd
# As per documentation at https://docs.google.com/document/d/1sfBkcqaGm4M3U6_uqVWSZ1MxKvnH5FK1U4OXr_HDU-w/edit#heading=h.tdhi5uogtedq
# and at https://help.ubuntu.com/community/LDAPClientAuthentication#Automatically_create_home_folders
# - name: ensure that ldap automount is added to nsswitch.conf
# lineinfile:
# line: 'automount: ldap'
# path: /etc/nsswitch.conf
# insertafter: EOF
# notify:
# - restart sssd
- name: automate the homedir creation process for CentOS
shell: authconfig --enablemkhomedir --update
- name: join Ldap Centos
shell: authconfig --enablesssdauth --enablesssd --updateall
- name: generate ldap.conf for Centos
template:
......@@ -84,12 +84,7 @@
notify:
- restart sssd
# As per documentation at https://docs.google.com/document/d/1sfBkcqaGm4M3U6_uqVWSZ1MxKvnH5FK1U4OXr_HDU-w/edit#heading=h.tdhi5uogtedq
# and at https://help.ubuntu.com/community/LDAPClientAuthentication#Automatically_create_home_folders
- name: automate the homedir creation process for CentOS
shell: authconfig --enablemkhomedir --update
- name: join Ldap Centos
shell: authconfig --enablesssdauth --enablesssd --updateall
- name: Start service dcgm_exporter.service, if not started
ansible.builtin.service:
name: sssd.service
state: restarted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment