---
- name: root alias to kradalby
  action: lineinfile dest=/etc/aliases regexp='^root:' line='root:kradalby' state=present

- name: add mail alias to kradalby
  action: lineinfile dest=/etc/aliases regexp="^kradalby:" line="kradalby:kradalby@kradalby.no" state=present

- name: run newalias
  shell: newaliases

- name: set mailname
  template: src=mailname.j2 dest="/etc/mailname" owner=root mode=644
  notify: restart postfix

---
- name: root alias to kradalby
  action: lineinfile dest=/etc/aliases regexp='^root:' line='root:kradalby' state=present

- name: add mail alias to kradalby
  action: lineinfile dest=/etc/aliases regexp="^kradalby:" line="kradalby:kradalby@kradalby.no" state=present

- name: set mailname
  template: src=mailname.j2 dest="/etc/mailname" owner=root mode=644

- name: run newalias
  shell: newaliases
  notify: restart postfix

Fix order of postfix job, resolve raise condition
Fix order of postfix job, resolve raise condition
