Feat: expand YAML syntax
Signed-off-by: Hadrien Patte <hadrien.patte@protonmail.com>
This commit is contained in:
parent
8a48110c21
commit
c20d4fbf18
1 changed files with 9 additions and 3 deletions
|
@ -28,14 +28,18 @@
|
||||||
|
|
||||||
# Cry a bit
|
# Cry a bit
|
||||||
- name: Remove old data
|
- name: Remove old data
|
||||||
file: path={{ item }} state=absent
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: absent
|
||||||
with_items:
|
with_items:
|
||||||
- /etc/ldap/slapd.d
|
- /etc/ldap/slapd.d
|
||||||
- /var/lib/ldap
|
- /var/lib/ldap
|
||||||
|
|
||||||
# Cry a lot
|
# Cry a lot
|
||||||
- name: Recreate structure
|
- name: Recreate structure
|
||||||
file: path={{ item }} state=directory
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- /etc/ldap/slapd.d
|
- /etc/ldap/slapd.d
|
||||||
- /var/lib/ldap
|
- /var/lib/ldap
|
||||||
|
@ -58,4 +62,6 @@
|
||||||
|
|
||||||
# Save the day
|
# Save the day
|
||||||
- name: Start LDAP server
|
- name: Start LDAP server
|
||||||
service: name=slapd state=started
|
service:
|
||||||
|
name: slapd
|
||||||
|
state: started
|
||||||
|
|
Loading…
Reference in a new issue