Select Git revision
runtime.yml
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
main.yml 3.08 KiB
---
- name: "include tls config vars (preset: {{ postfix_tls_configuration }})"
include_vars:
file: "tls-{{ postfix_tls_configuration }}.yml"
tags:
- postfix
- mail
- name: ensure all required postfix packages are installed
apt:
name:
- postfix
- postfix-pcre
- postfix-cdb
state: present
tags:
- postfix
- mail
- name: ensure additional packages are installed if required
apt:
name: memcached
state: present
when: postfix_enable_memcached
tags:
- postfix
- mail
- name: ensure config is present
template:
src: "{{ item }}.j2"
dest: "/etc/postfix/{{ item }}"
with_items:
- master.cf
- main.cf
notify:
- restart postfix
tags:
- postfix
- mail
- name: ensure login maps list is present
template:
src: "login_maps.pcre.j2"
dest: "/etc/postfix/login_maps.pcre"
when:
- not postfix_satellite_only
- postfix_enable_dovecot
- not postfix_fsmpi|default(false)
notify:
- restart postfix
tags:
- postfix
- mail
- name: ensure postscreen access list is present
template:
src: "postscreen_access.cidr.j2"
dest: "/etc/postfix/postscreen_access.cidr"
when:
- not postfix_satellite_only
- postfix_enable_postscreen
notify:
- restart postfix
tags:
- postfix
- mail
- name: ensure dh params are available