69f83178414a92fd75328672bef0e34cd82041d7
[ansible.git] / roles / postfix / tasks / main.yml
1 - name: install postfix
2   apt: name=postfix,bsd-mailx state=latest
3 - name: install postfix main.cf
4   register: config_main
5   template:
6     src: templates/main.cf
7     dest: /etc/postfix/main.cf
8 - name: reload postfix
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
14   copy:
15     src: files/check-for-local-mail
16     dest: /etc/cron.daily/check-for-local-mail
17     mode: u=rwx,g=rx,o=rx