1 - name: install postfix
2 apt: name=postfix,bsd-mailx state=latest
3 - name: install postfix main.cf
7 dest: /etc/postfix/main.cf
9 service: name=postfix state=restarted enabled=yes
10 when: config_main.changed
11 - name: delete old local-mail cronjob
12 file: path=/etc/cron.daily/local-mail state=absent
13 - name: install check-for-local-mail cronjob
15 src: files/check-for-local-mail
16 dest: /etc/cron.daily/check-for-local-mail