X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/ac44ccaff48a46b6369da88a55b9bfed07d5f7dd..d281db9defd2e0c0e6b9761736ff38a9df7391b0:/roles/postfix/tasks/main.yml diff --git a/roles/postfix/tasks/main.yml b/roles/postfix/tasks/main.yml new file mode 100644 index 0000000..69f8317 --- /dev/null +++ b/roles/postfix/tasks/main.yml @@ -0,0 +1,17 @@ +- name: install postfix + apt: name=postfix,bsd-mailx state=latest +- name: install postfix main.cf + register: config_main + template: + src: templates/main.cf + dest: /etc/postfix/main.cf +- name: reload postfix + service: name=postfix state=restarted enabled=yes + when: config_main.changed +- name: delete old local-mail cronjob + file: path=/etc/cron.daily/local-mail state=absent +- name: install check-for-local-mail cronjob + copy: + src: files/check-for-local-mail + dest: /etc/cron.daily/check-for-local-mail + mode: u=rwx,g=rx,o=rx