blob: 4abbd3a8eac47741557e2c07a1ce203b4428a6d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
- name: Create /etc/stunnel/certs
file: path=/etc/stunnel/certs
state=directory
owner=root group=root
mode=0755
- name: Copy the slapd X.509 certificate
copy: src=certs/ldap/ldap.fripost.org.pem
dest=/etc/stunnel/certs/ldap.pem
owner=root group=root
mode=0644
register: r1
notify:
- Restart stunnel@ldap
- name: Configure stunnel
copy: src=etc/stunnel/ldap.conf
dest=/etc/stunnel/ldap.conf
owner=root group=root
mode=0644
register: r2
notify:
- Restart stunnel@ldap
- name: Enable stunnel@ldap
service: name=stunnel4@ldap enabled=yes
- name: Start stunnel@ldap
service: name=stunnel4@ldap state=started
when: not (r1.changed or r2.changed)
|