update configure centralized auth
This commit is contained in:
parent
d738d66af0
commit
f27ca2277a
|
@ -185,7 +185,24 @@
|
||||||
with_items:
|
with_items:
|
||||||
- regexp: "^bindpw"
|
- regexp: "^bindpw"
|
||||||
line: "bindpw {{ bindpw_password }}"
|
line: "bindpw {{ bindpw_password }}"
|
||||||
notify: restart nslcd
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
# paso3 - editar lineas fichero /etc/nsswitch.conf
|
||||||
|
- name: edit file /etc/nsswitch.conf
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/nsswitch.conf
|
||||||
|
regexp: "{{item.regexp}}"
|
||||||
|
line: "{{item.line}}"
|
||||||
|
state: present
|
||||||
|
with_items:
|
||||||
|
- regexp: "^passwd:"
|
||||||
|
line: "passwd: files systemd ldap"
|
||||||
|
- regexp: "^group:"
|
||||||
|
line: "group: files systemd ldap"
|
||||||
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
# paso4 - reconfigure PAM to use LDAP
|
||||||
|
- name: reconfigure PAM to use LDAP
|
||||||
|
shell: pam-auth-update --enable ldap
|
||||||
|
notify: restart nslcd
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
Loading…
Reference in New Issue