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.

rspamd.yml 1023B

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 socket 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 socket listener
  26. service: name=rspamd.socket state=started
  27. - name: Start rmilter systemd socket listener
  28. service: name=rmilter.socket state=started