slapd: mise au point
This commit is contained in:
@@ -122,25 +122,16 @@
|
|||||||
- name: configure ssl
|
- name: configure ssl
|
||||||
tags: ssl
|
tags: ssl
|
||||||
block:
|
block:
|
||||||
- name: ensure certificate and key files have correct permissions
|
|
||||||
file:
|
|
||||||
path: "{{ item }}"
|
|
||||||
group: ldap
|
|
||||||
mode: 0640
|
|
||||||
loop:
|
|
||||||
- "{{ ldap_ssl_cert_path }}"
|
|
||||||
- "{{ ldap_ssl_key_path }}"
|
|
||||||
- "{{ ldap_ssl_cacert_path }}"
|
|
||||||
|
|
||||||
- name: send ldif file
|
- name: send ldif file
|
||||||
template:
|
template:
|
||||||
src: ssl.ldif
|
src: ssl.ldif
|
||||||
dest: /root/
|
dest: /root/
|
||||||
|
|
||||||
- name: import ldif
|
- name: import ldif
|
||||||
command: ldapmodify -c -Y EXTERNAL -H ldapi:/// -f /root/ssl.ldif
|
command: ldapmodify -c -Y EXTERNAL -H ldapi:/// -f /root/ssl.ldif
|
||||||
|
|
||||||
- name: configure url
|
- name: configure url
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/sysconfig/slapd
|
path: /etc/sysconfig/slapd
|
||||||
regexp: '^SLAPD_URLS="ldapi:/// ldap:///"'
|
regexp: '^SLAPD_URLS="ldapi:/// ldap:///"'
|
||||||
@@ -148,7 +139,7 @@
|
|||||||
state: present
|
state: present
|
||||||
notify: restart_slapd
|
notify: restart_slapd
|
||||||
|
|
||||||
- name: remove ldif
|
- name: remove ldif
|
||||||
file:
|
file:
|
||||||
path: /root/ssl.ldif
|
path: /root/ssl.ldif
|
||||||
state: absent
|
state: absent
|
||||||
|
|||||||
Reference in New Issue
Block a user