main.yml 460 B

12345678910111213141516171819202122232425
  1. ---
  2. - name: Install dma (DragonFly Mail Agent)
  3. apt:
  4. name: dma
  5. state: present
  6. - name: create dma auth.conf
  7. copy:
  8. dest: /etc/dma/auth.conf
  9. mode: 0640
  10. owner: root
  11. group: mail
  12. content: "{{ dma_auth_conf }}"
  13. when: dma_auth_conf is defined
  14. - name: create dma.conf
  15. copy:
  16. dest: /etc/dma/dma.conf
  17. mode: 0640
  18. owner: root
  19. group: mail
  20. content: "{{ dma_conf }}"
  21. when: dma_conf is defined