From c20d4fbf1886d9f83612fa1101dce5434f192b82 Mon Sep 17 00:00:00 2001 From: Hadrien Patte Date: Sat, 23 Mar 2019 19:47:59 +0100 Subject: [PATCH] Feat: expand YAML syntax Signed-off-by: Hadrien Patte --- roles/ldap-replica/tasks/main.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/roles/ldap-replica/tasks/main.yml b/roles/ldap-replica/tasks/main.yml index bb31e09..ce19bdb 100644 --- a/roles/ldap-replica/tasks/main.yml +++ b/roles/ldap-replica/tasks/main.yml @@ -28,14 +28,18 @@ # Cry a bit - name: Remove old data - file: path={{ item }} state=absent + file: + path: "{{ item }}" + state: absent with_items: - /etc/ldap/slapd.d - /var/lib/ldap # Cry a lot - name: Recreate structure - file: path={{ item }} state=directory + file: + path: "{{ item }}" + state: directory with_items: - /etc/ldap/slapd.d - /var/lib/ldap @@ -58,4 +62,6 @@ # Save the day - name: Start LDAP server - service: name=slapd state=started + service: + name: slapd + state: started