diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2016-05-22 23:54:40 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2016-05-22 23:54:40 +0200 |
commit | 7525e4c5dedea932491c80c3a5b597435a1e351f (patch) | |
tree | 7f5fd9c87660f8bbb850add8536f47074d361ff9 /roles/IMAP-proxy/tasks | |
parent | 73b2a602ee85706b2a1797632142058c6253ea5d (diff) |
Dovecot imapc: change imapproxy's homedir from /home/imapproxy to /var/lib/imapproxy.
Diffstat (limited to 'roles/IMAP-proxy/tasks')
-rw-r--r-- | roles/IMAP-proxy/tasks/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/IMAP-proxy/tasks/main.yml b/roles/IMAP-proxy/tasks/main.yml index 7fcf91d..579fc7e 100644 --- a/roles/IMAP-proxy/tasks/main.yml +++ b/roles/IMAP-proxy/tasks/main.yml @@ -1,37 +1,37 @@ - name: Install Dovecot #apt: pkg={{ item }} default_release={{ ansible_lsb.codename }}-backports apt: pkg={{ item }} with_items: - dovecot-core - dovecot-imapd - name: Create a user 'imapproxy' user: name=imapproxy system=yes createhome=no - home=/home/imapproxy + home=/var/lib/imapproxy shell=/usr/sbin/nologin password=! state=present - name: Create a home directory for user 'imapproxy' - file: path=/home/imapproxy + file: path=/var/lib/imapproxy state=directory owner=imapproxy group=imapproxy mode=0700 - name: Configure Dovecot copy: src=etc/dovecot/conf.d/{{ item }} dest=/etc/dovecot/conf.d/{{ item }} owner=root group=root mode=0644 register: r with_items: - 10-auth.conf - 10-logging.conf - 10-mail.conf - 10-master.conf - 15-mailboxes.conf - 20-imapc.conf - auth-imap.conf.ext notify: - Restart Dovecot |