Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

rspamd.yml 988B

123456789101112131415161718192021222324252627282930313233343536
  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. tags:
  6. - dependencies
  7. - name: Add Rspamd repository
  8. apt_repository: repo="deb https://rspamd.com/apt-stable/ {{ ansible_distribution_release }} main"
  9. tags:
  10. - dependencies
  11. - name: Install Rspamd, Rmilter, and Redis
  12. apt: pkg={{ item }} state=installed update_cache=yes
  13. with_items:
  14. - rspamd
  15. - rmilter
  16. - redis-server
  17. tags:
  18. - dependencies
  19. - name: Configure rmilter
  20. copy: src=etc_rmilter.conf.common dest=/etc/rmilter.conf.common
  21. - name: Configure rmilter service
  22. copy: src=lib_systemd_system_rmilter.socket dest=/lib/systemd/system/rmilter.socket
  23. - name: Start redis
  24. service: name=redis-server state=started
  25. - name: Start rspamd systemd listener
  26. service: name=rspamd state=started
  27. - name: Start rmilter systemd listener
  28. service: name=rmilter state=started