1
0
forked from infra/ansible

Create dovecot log dir and fix vmail user for mail role.

This commit is contained in:
Markus 2016-02-15 23:48:24 +01:00
parent 5f42f9e70c
commit 04ca9ff769

View File

@ -23,7 +23,7 @@
tags: mail
- name: Create vmail user
user: name=vmail uid=500 createhome=yes home=/var/vmail shell=/bin/false state=present
user: name=vmail group=vmail uid=500 createhome=yes home=/var/vmail shell=/bin/false state=present
tags: mail
- name: Configure amavis
@ -34,6 +34,14 @@
notify: Restart amavis
tags: mail
- name: Create dovecot ssl directory
file: path=/etc/dovecot/ssl state=directory mode=0750 owner=dovecot group=dovecot
tags: mail
- name: Create dovecot log directory
file: path=/var/log/dovecot state=directory mode=0750 owner=dovecot group=dovecot
tags: mail
- name: Configure dovecot
template: src={{ item }}.j2 dest=/etc/{{ item }}
with_items:
@ -42,20 +50,16 @@
notify: Restart dovecot
tags: mail
- name: Create dovecot ssl directory
file: path=/etc/dovecot/ssl state=directory mode=0750 owner=dovecot group=dovecot
tags: mail
- name: Create postfix ssl directory
file: path=/etc/postfix/ssl state=directory mode=0750 owner=postfix group=postfix
tags: mail
- name: Configure policyd
copy: src={{ item }} dest=/etc/postfix-policyd-spf-python/{{ item }}
with_items:
- policyd-spf.conf
tags: mail
- name: Create postfix ssl directory
file: path=/etc/postfix/ssl state=directory mode=0750 owner=postfix group=postfix
tags: mail
# TODO run postmap
- name: Configure postfix
template: src={{ item }}.j2 dest=/etc/{{ item }}