summaryrefslogtreecommitdiff
blob: a15c330fc9de1ea69d6c2e9630d644346f225a6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
# Set Up rspam repo
- name: install rspam key
  apt_key:
    url: https://rspamd.com/apt-stable/gpg.key
    state: present

- name: create rspam repo
  apt_repository:
    repo: deb http://rspamd.com/apt-stable/ bionic main
    state: present

# rspamd install and configuration
- name: install shitdis
  apt:
    pkg: redis
    state: latest

- name: set guanodis directory permissions
  file:
    path: /var/lib/redis
    owner: redis
    group: redis
    mode: 0700
    state: directory

- name: copy poodis config
  copy:
    src: redis/
    dest: /etc/redis/
  notify:
  - restart redis

- name: install rspamd
  apt:
    pkg: rspamd
    state: latest

- name: copy rspamd config
  copy:
    src: rspamd/local.d/
    dest: /etc/rspamd/local.d/
  notify:
  - restart rspamd

# verify everything is running
- name: verify services are running in dependency order
  service:
    name: "{{ item }}"
    enabled: yes
    state: started
  loop:
    - redis
    - rspamd
Powered by cgit v1.2.3 (git 2.41.0)