smtp.yml 515 B

123456789101112131415
  1. - name: Install postfix packages
  2. action: apt pkg=postfix state=installed update_cache=yes
  3. when_boolean: ${with_smtp}
  4. - name: Install mail aliases file
  5. action: template src=aliases.j2 dest=/etc/aliases owner=root group=root mode=0644
  6. notify:
  7. - Regenerate aliases cache
  8. when_boolean: ${with_smtp}
  9. - name: Install postfix main configuration
  10. action: template src=postfix/main.cf.j2 dest=/etc/postfix/main.cf owner=root group=root mode=0644
  11. notify:
  12. - Restart postfix
  13. when_boolean: ${with_smtp}