25 lines
539 B
YAML
25 lines
539 B
YAML
|
---
|
||
|
- name: ensure packages are installed
|
||
|
apt:
|
||
|
name: '{{ item }}'
|
||
|
state: present
|
||
|
with_items:
|
||
|
- postfix
|
||
|
tags:
|
||
|
- postfix
|
||
|
|
||
|
- name: create minimal main.cf
|
||
|
template:
|
||
|
src: evolinux_main.cf.j2
|
||
|
dest: /etc/postfix/main.cf
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: "0644"
|
||
|
force: yes
|
||
|
notify: restart postfix
|
||
|
when: postfix_force_main_cf == True or
|
||
|
default_main_cf.stdout == "5450c05d65878e99dad696c7c722e511 -" or
|
||
|
default_main_cf.stdout == "30022953f1f61f002bfb72e163ecb27e -"
|
||
|
tags:
|
||
|
- postfix
|