From 46fdb17688017ba5ed6239b7bf6195dd1a6b6afe Mon Sep 17 00:00:00 2001 From: Elad Amit Date: Mon, 1 May 2017 15:04:17 +0300 Subject: [PATCH] ensure that the mdadm config directory exists (e.g. coreos) --- tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index d68caee..e734dcf 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -27,6 +27,11 @@ when: software_raid_devices is defined changed_when: false + - name: software raid - ensure that the mdadm config directory exists (e.g. coreos) + file: + path: /etc/mdadm + state: directory + - name: software raid - create mdadm config file template: src=mdadm.conf.j2 dest=/etc/mdadm/mdadm.conf when: software_raid_devices is defined