Ei kuvausta
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.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. tags:
  10. - deps
  11. - name: Install dspam and related packages on distributions other than wheezy
  12. apt: pkg={{ item }} state=installed
  13. with_items:
  14. - dovecot-antispam
  15. - dovecot-sieve
  16. - dspam
  17. - postfix-pcre
  18. when: ansible_distribution_release != 'wheezy'
  19. tags:
  20. - deps
  21. - name: Create dspam directory
  22. file: state=directory path=/decrypted/dspam group=dspam owner=dspam
  23. - name: Put dspam configuration files in place
  24. copy: src=etc_dspam_{{ item }} dest=/etc/dspam/{{ item }} owner=dspam group=dspam
  25. with_items:
  26. - default.prefs
  27. - dspam.conf
  28. notify:
  29. - restart postfix
  30. - restart dovecot
  31. - name: Put dspam postfix configuration in place
  32. copy: src=etc_postfix_dspam_filter_access dest=/etc/postfix/dspam_filter_access owner=root group=root
  33. notify: restart postfix
  34. - name: Put dspam dovecot configuration in place
  35. copy: src=etc_dovecot_conf.d_{{ item }} dest=/etc/dovecot/conf.d/{{ item }} owner=vmail group=dovecot
  36. with_items:
  37. - 20-imap.conf
  38. - 90-plugin.conf
  39. notify: restart dovecot