X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/6d75c873754f955e7bb8d08b653131a0348db088..8f45e251398609123b227c46a93a78da5aaf3d74:/roles/postfix/tasks/main.yml diff --git a/roles/postfix/tasks/main.yml b/roles/postfix/tasks/main.yml index 07c344e..af796d3 100644 --- a/roles/postfix/tasks/main.yml +++ b/roles/postfix/tasks/main.yml @@ -1,20 +1,8 @@ -- name: install postfix - apt: name=postfix,bsd-mailx state=latest -- name: install postfix config - register: config_main - template: - src: templates/{{ item }} - dest: /etc/postfix/{{ item }} - with_items: - - main.cf - - master.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 +# daemons +- import_tasks: unbound.yml + tags: unbound +- import_tasks: opendkim.yml + tags: opendkim + when: postfix.opendkim is defined +- import_tasks: postfix.yml + tags: postfix