Playbooks to a new Lilik
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.

47 lines
1.1 KiB

  1. - include_role:
  2. name: service
  3. vars:
  4. service_name: clamav-daemon
  5. service_packages:
  6. - clamav-daemon
  7. install_recommends: yes
  8. - include_role:
  9. name: service
  10. vars:
  11. service_name: amavisd-milter
  12. service_packages:
  13. - amavisd-milter
  14. - spamassassin
  15. install_recommends: yes
  16. - name: disable spamassassin at boot
  17. service: name="spamassassin" enabled=no
  18. # TODO spam, discard spam instead of bouncing it
  19. # /etc/amavis/conf.d/
  20. # $final_spam_destiny = D_DISCARD;
  21. - name: configure amavisd-milter socket
  22. blockinfile:
  23. dest: '/etc/default/amavisd-milter'
  24. block: |
  25. MILTERSOCKET=inet:60001@127.0.0.1
  26. notify: restart amavisd-milter
  27. - name: add opendkim milter
  28. set_fact:
  29. postfix_milters: '{{postfix_milters + ["inet:127.0.0.1:60001"]}}'
  30. - include_role:
  31. name: service
  32. vars:
  33. service_name: postgrey
  34. service_packages:
  35. - postgrey
  36. - name: add postgrey to postfix
  37. lineinfile:
  38. dest: '/etc/postfix/main.cf'
  39. line: 'smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:10023'
  40. notify: restart postfix