Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

rspamd.yml 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ---
  2. # Installs and configures the Rspamd spam filtering system.
  3. - name: Ensure repository key for Rspamd is in place
  4. apt_key: url=https://rspamd.com/apt-stable/gpg.key state=present
  5. when: ansible_architecture != "armv7l"
  6. tags:
  7. - dependencies
  8. - name: Ensure yunohost repository key for Rspamd is in place for ARM
  9. apt_key: url=http://repo.yunohost.org/debian/yunohost.asc state=present
  10. when: ansible_architecture == "armv7l"
  11. tags:
  12. - dependencies
  13. - name: Add Rspamd repository
  14. apt_repository: repo="deb https://rspamd.com/apt-stable/ {{ ansible_distribution_release }} main"
  15. when: ansible_architecture != "armv7l"
  16. tags:
  17. - dependencies
  18. - name: Add yunohost Rspamd repository for ARM
  19. apt_repository: repo="deb http://repo.yunohost.org/debian {{ ansible_distribution_release }} stable"
  20. when: ansible_architecture == "armv7l"
  21. tags:
  22. - dependencies
  23. - name: Install Rspamd, Rmilter, and Redis
  24. apt: pkg={{ item }} state=installed update_cache=yes
  25. with_items:
  26. - rspamd
  27. - rmilter
  28. - redis-server
  29. tags:
  30. - dependencies
  31. - name: Configure rmilter.common
  32. copy: src=etc_rmilter.conf.common dest=/etc/rmilter.conf.common
  33. - name: Configure rmilter socket
  34. lineinfile: dest=/etc/rmilter.conf regexp=^bind_socket line="bind_socket = inet:9900@localhost;"
  35. - name: Configure rmilter service
  36. copy: src=lib_systemd_system_rmilter.socket dest=/lib/systemd/system/rmilter.socket
  37. - name: Start redis
  38. service: name=redis-server state=started
  39. - name: Start rspamd systemd listener
  40. service: name=rspamd state=started
  41. - name: Start rmilter systemd listener
  42. service: name=rmilter state=started