26 lines
725 B
YAML
26 lines
725 B
YAML
---
|
|
- include: install_archlinux.yml
|
|
when: (ansible_distribution == "Antergos") or (ansible_os_family == "Archlinux")
|
|
|
|
- include: install_debian.yml
|
|
when: (ansible_distribution == "Debian") or (ansible_distribution == "Ubuntu")
|
|
|
|
- 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
|