Feat: expand YAML syntax

Signed-off-by: Hadrien Patte <hadrien.patte@protonmail.com>
This commit is contained in:
Hadrien Patte 2019-03-23 19:47:59 +01:00
parent 8a48110c21
commit c20d4fbf18
No known key found for this signature in database
GPG key ID: 0954F2874A54F4B1

View file

@ -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