From 0088f50a9bfe297760f9641dce4e770926d0f2fe Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 17 Jan 2014 04:46:06 +0100 Subject: Ansible automatically creates parent directories. --- roles/IMAP/tasks/imap.yml | 11 +++++------ roles/lists/tasks/mlmmj.yml | 15 ++++++++++----- 2 files changed, 15 insertions(+), 11 deletions(-) (limited to 'roles') 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 diff --git a/roles/lists/tasks/mlmmj.yml b/roles/lists/tasks/mlmmj.yml index 934433e..5944e57 100644 --- a/roles/lists/tasks/mlmmj.yml +++ b/roles/lists/tasks/mlmmj.yml @@ -47,15 +47,14 @@ owner=root group=root mode=0644 -- name: Create /usr/share/mlmmj/... - file: path=/usr/share/mlmmj/{{ item }} +- name: Create /usr/share/mlmmj/static/{css,fonts} + file: path=/usr/share/mlmmj/static/{{ item }} state=directory owner=root group=root mode=0755 with_items: - - static - - static/css - - static/fonts + - css + - fonts - name: Copy CSS files copy: src=usr/share/mlmmj/static/css/{{ item }} @@ -76,3 +75,9 @@ - glyphicons-halflings-regular.svg - glyphicons-halflings-regular.ttf - glyphicons-halflings-regular.woff + +- name: Create /usr/lib/cgi-bin/mlmmj + file: path=/usr/lib/cgi-bin/mlmmj + state=directory + owner=root group=root + mode=0755 -- cgit v1.2.3