1 - name: install postfix
2 apt: name=postfix,bsd-mailx state=latest
3 - name: install postfix config
6 src: templates/{{ item }}
7 dest: /etc/postfix/{{ item }}
11 - name: reload postfix
12 service: name=postfix state=restarted enabled=yes
13 when: config_main.changed
14 - name: delete old local-mail cronjob
15 file: path=/etc/cron.daily/local-mail state=absent
16 - name: install check-for-local-mail cronjob
18 src: files/check-for-local-mail
19 dest: /etc/cron.daily/check-for-local-mail