X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/d281db9defd2e0c0e6b9761736ff38a9df7391b0..d60c3d0624872eacb41ee95e2cc29ae88a0372f9:/roles/postfix/tasks/main.yml?ds=sidebyside diff --git a/roles/postfix/tasks/main.yml b/roles/postfix/tasks/main.yml index 69f8317..07c344e 100644 --- a/roles/postfix/tasks/main.yml +++ b/roles/postfix/tasks/main.yml @@ -1,10 +1,13 @@ - name: install postfix apt: name=postfix,bsd-mailx state=latest -- name: install postfix main.cf +- name: install postfix config register: config_main template: - src: templates/main.cf - dest: /etc/postfix/main.cf + 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