Select Git revision
linuxparty.sh
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
main.yml 1.07 KiB
---
- name: ensure all required postfix packages are installed
apt: name={{ item }} state=present
with_items:
- postfix
- postfix-pcre
- postfix-cdb
- memcached
tags:
- postfix
- mail
- name: ensure not templated config is present
copy: src=files/{{ item }} dest=/etc/postfix/
with_items:
- login_maps.pcre
- master.cf
- sender_login_map.hash
- postscreen_whitelist
notify:
- restart postfix
tags:
- postfix
- mail
- name: ensure templated config is present
template: src=templates/{{ item }}.j2 dest=/etc/postfix/{{ item }}
with_items:
- main.cf
- postscreen_cache
notify:
- restart postfix
tags:
- postfix
- mail
- name: ensure system alias database is present
template: src=templates/aliases.j2 dest=/etc/aliases
notify:
- postmap system
tags:
- postfix
- mail
- name: ensure virtual alias database is present
template: src=templates/v_aliases.j2 dest=/etc/postfix/virtual
notify:
- postmap virtual
tags:
- postfix
- mail
- meta: flush_handlers