Skip to content
Snippets Groups Projects
Commit 70c572f6 authored by Jupiter Hu's avatar Jupiter Hu
Browse files

polish open ldap client

parent 97b2a3bf
No related branches found
No related tags found
No related merge requests found
......@@ -14,4 +14,4 @@ ldapCaCertFileSource: "/etc/openldap/certs"
cacertFile: "ca.pem"
ldapRfc2307: ""
ldapRfc2307Pam: ""
ldapServerHost: "10.0.0.1 ldapserver.com"
---
- name: restart sssd
service: name=sssd state=restarted
- name: auth config
shell: authconfig --updateall
sudo: true
- name: restart sssd
service: name=sssd state=restarted
sudo: true
......@@ -16,9 +16,7 @@
sudo: true
- name: "Insert LDAP IP address LDAP to /etc/hosts"
lineinfile: dest=/etc/hosts line='130.220.209.234 m2-w.massive.org.au' state=present insertafter=EOF
# lineinfile: dest=/etc/hosts regexp=^130.220.209.234 line=130.220.209.234 m2-w.massive.org.au state=present insertafter=EOF
# lineinfile: dest=/etc/hosts regexp=^130.220.209.234 line=130.220.209.234 m2-w.massive.org.au state=present
lineinfile: dest=/etc/hosts line="{{ ldapServerHost }}" state=present insertafter=EOF
sudo: true
- name: "Copy ldap.conf file "
......@@ -26,12 +24,12 @@
sudo: true
- name: "Copy ldap cacert file"
copy: src={{ ldapCaCertFileSource }}/cacert.pem dest=/etc/openldap/certs/cacert.pem owner=root group=root mode=0644
copy: src={{ ldapCaCertFileSource }} dest={{ tlsCaCertFile }} owner=root group=root mode=0644
sudo: true
- name: "Copy sssd.conf to ldap client"
template: src=sssd.j2 dest=/etc/sssd/sssd.conf owner=root group=root mode=600
sudo: true
notify: restart sssd
notify: auth config
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