---

- name: "Nullmailer | remove Exim"
  apt:
    name="exim4"
    state="absent"
  tags:
    - "packages"

- name: "Nullmailer | install"
  apt:
    name="nullmailer"
    state="present"
    update_cache="yes"
  tags:
    - "packages"

- name: "Nullmailer | configuration"
  template:
    src="remotes.j2"
    dest="/etc/nullmailer/remotes"

---

- name: "Nullmailer | remove Exim"
  apt:
    name="exim4"
    state="absent"
  tags:
    - "packages"

- name: "Nullmailer | install"
  apt:
    name="nullmailer"
    state="present"
  tags:
    - "packages"

- name: "Nullmailer | configuration"
  template:
    src="remotes.j2"
    dest="/etc/nullmailer/remotes"
  tags:
    - "packages"

Make nullmailer task more idempotent.
Make nullmailer task more idempotent.
