From f33d2085d9091c283ccfd5888a3a1d0d6eb150ea Mon Sep 17 00:00:00 2001 From: birgitcroux Date: Tue, 1 Dec 2015 13:18:58 +0100 Subject: [PATCH] create shares root first --- tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 5683803..97aa741 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -22,6 +22,14 @@ - samba_export_all_rw tags: samba +- name: Create Samba shares root directory + file: + state: directory + path: "{{ samba_shares_root }}" + owner: root + group: root + mode: '0755' + - name: Create share directories with_items: samba_shares file: