summaryrefslogtreecommitdiffstats
path: root/roles/IMAP
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2014-01-17 04:46:06 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:51:41 +0200
commit0088f50a9bfe297760f9641dce4e770926d0f2fe (patch)
treeba735a60c41310228dc3bbeaa0563f94ddf045fb /roles/IMAP
parent5bf048570001b6a364b1ae33d4d436b14f44c974 (diff)
Ansible automatically creates parent directories.
Diffstat (limited to 'roles/IMAP')
-rw-r--r--roles/IMAP/tasks/imap.yml11
1 files changed, 5 insertions, 6 deletions
diff --git a/roles/IMAP/tasks/imap.yml b/roles/IMAP/tasks/imap.yml
index 5ed67da..67c2bcc 100644
--- a/roles/IMAP/tasks/imap.yml
+++ b/roles/IMAP/tasks/imap.yml
@@ -23,16 +23,15 @@
mode=0700
- name: Create virtual mailbox directories
- file: path=/etc/dovecot/virtual{{ item }}
+ file: path=/etc/dovecot/virtual/{{ item }}
state=directory
owner=root group=root
mode=0755
with_items:
- -
- - /all
- - /flagged
- - /recent
- - /unseen
+ - all
+ - flagged
+ - recent
+ - unseen
- name: Create virtual mailboxes
copy: src=etc/dovecot/virtual/{{ item }}/dovecot-virtual