23 lines
571 B
YAML
23 lines
571 B
YAML
---
|
|
- include: install_archlinux.yml
|
|
when: ansible_os_family == 'Archlinux'
|
|
|
|
- name: Add service smtp lines
|
|
lineinfile: dest=/etc/services regexp='^smtps {{item}}' line="smtps {{item}}"
|
|
with_items:
|
|
- 465/tcp
|
|
- 465/udp
|
|
|
|
- name: Create vmail group
|
|
group: name=vmail state=present
|
|
|
|
- name: Create vmail user
|
|
user: name=vmail group=vmail shell=/usr/bin/nologin home={{mail_homedir}}
|
|
|
|
- name: Create homedir
|
|
file: path={{mail_homedir}} state=directory mode=770 owner=vmail group=vmail
|
|
|
|
- include: postfix.yml
|
|
- include: dovecot.yml
|
|
- include: spamassassin.yml
|