--- - name: Ensure exim is installed. package: name: exim4 state: present - name: Ensure greylist files in place copy: src: exim-greylist.conf.inc dest: /etc/exim4/exim-greylist.conf.inc owner: root group: root mode: u=rw,go=r notify: restart exim - name: Update Exim configuration. template: src: exim4.conf.j2 dest: "{{ exim_config_file }}" owner: root group: root mode: u=rw,go=r notify: restart exim - name: Ensure exim is started and enabled at boot. service: name: exim4 state: "{{ exim_service_state }}" enabled: "{{ exim_service_enabled }}"