change redis config
This commit is contained in:
parent
b46012bf7a
commit
e31ddb9102
2 changed files with 25 additions and 0 deletions
|
|
@ -1,5 +1,19 @@
|
|||
- include: install.yml
|
||||
|
||||
- name: use redis
|
||||
when: rspamd.redis
|
||||
block:
|
||||
- name: add redis config to local_configs
|
||||
set_fact:
|
||||
rspamd:
|
||||
local_configs: "{{ {}|combine( rspamd.local_configs, rspamd_redis.local_configs) }}"
|
||||
|
||||
- name: add rspamd user to redis group
|
||||
user:
|
||||
name: _rspamd
|
||||
groups: redis
|
||||
append: true
|
||||
|
||||
- name: create local.d config files
|
||||
template:
|
||||
src: local.d.config.j2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue