No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dspam.yml 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. - name: Install dspam and related packages on wheezy
  2. apt: pkg={{ item }} state=installed default_release=wheezy-backports
  3. with_items:
  4. - dovecot-antispam
  5. - dovecot-sieve
  6. - dspam
  7. - postfix-pcre
  8. when: ansible_distribution_release == 'wheezy'
  9. - name: Install dspam and related packages on distributions other than wheezy
  10. apt: pkg={{ item }} state=installed
  11. with_items:
  12. - dovecot-antispam
  13. - dovecot-sieve
  14. - dspam
  15. - postfix-pcre
  16. when: ansible_distribution_release != 'wheezy'
  17. - name: Create dspam directory
  18. file: state=directory path=/decrypted/dspam group=dspam owner=dspam
  19. - name: Put dspam configuration files in place
  20. copy: src=etc_dspam_{{ item }} dest=/etc/dspam/{{ item }} owner=dspam group=dspam
  21. with_items:
  22. - default.prefs
  23. - dspam.conf
  24. notify:
  25. - restart postfix
  26. - restart dovecot
  27. - name: Put dspam postfix configuration in place
  28. copy: src=etc_postfix_dspam_filter_access dest=/etc/postfix/dspam_filter_access owner=root group=root
  29. notify: restart postfix
  30. - name: Put dspam dovecot configuration in place
  31. copy: src=etc_dovecot_conf.d_{{ item }} dest=/etc/dovecot/conf.d/{{ item }} owner=vmail group=dovecot
  32. with_items:
  33. - 20-imap.conf
  34. - 90-plugin.conf
  35. notify: restart dovecot