---
- name: install Amavis
  apt:
    name:
      - postgrey
      - amavisd-new
    state: present
  tags:
  - amavis

- name: configure Amavis
  template:
    src: amavis.conf.j2
    dest: /etc/amavis/conf.d/49-evolinux-defaults
    mode: "0644"
  notify: restart amavis
  tags:
  - amavis
