diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2018-12-09 18:26:53 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2018-12-09 20:25:40 +0100 |
commit | 1b834eaf9983dc94cbdbee983c5f15e4f50b4d7c (patch) | |
tree | 3db6b4c2eb3bca79d03ccfe25a8196ff321e51d8 | |
parent | 7403204208322ab2e46920a024e74700757c2665 (diff) |
IMAP: Ensure /home/mail is mounted before creating sub-directories.
-rw-r--r-- | roles/IMAP/tasks/imap.yml | 7 |
1 files changed, 7 insertions, 0 deletions
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 |