imfreedom/ansible

Add reviewboard to the stuff to monitor

18 months ago, Gary Kramlich
68a24832ea78
Add reviewboard to the stuff to monitor
---
- name: force cache update to get correct facts
apt:
update_cache: "yes"
- name: "add apt key"
apt_key:
url: "https://rspamd.com/apt-stable/gpg.key"
state: "present"
- name: "add apt source"
apt_repository:
repo: "deb http://rspamd.com/apt-stable/ {{ ansible_distribution_release }} main"
state: "present"
filename: "rspamd"
- name: "install"
apt:
name:
- "redis-server"
- "redis-tools"
- "rspamd"
state: "present"
cache_valid_time: 3600
force_apt_get: "yes"
- name: "install configuration files"
copy:
src: "{{ item }}"
dest: "/etc/rspamd/local.d/{{ item }}"
mode: 0644
loop:
- classifier-bayes.conf
- milter_headers.conf
- options.inc
- redis.conf
- worker-proxy.inc
notify: "restart rspamd"
- meta: flush_handlers