From 1b834eaf9983dc94cbdbee983c5f15e4f50b4d7c Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 9 Dec 2018 18:26:53 +0100 Subject: IMAP: Ensure /home/mail is mounted before creating sub-directories. --- roles/IMAP/tasks/imap.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'roles/IMAP') diff --git a/roles/IMAP/tasks/imap.yml b/roles/IMAP/tasks/imap.yml index 18aa910..29b449e 100644 --- a/roles/IMAP/tasks/imap.yml +++ b/roles/IMAP/tasks/imap.yml @@ -48,6 +48,13 @@ owner=root group=root mode=0755 +- name: Mount /home/mail + mount: src=/dev/mapper/luksMail + path=/home/mail + fstype=ext4 + opts=noauto + state=mounted + - name: Create /home/mail/{virtual,attachments,spamspool} file: path=/home/mail/{{ item }} state=directory -- cgit v1.2.3