Redis: configuration for "protected-mode" + tags
This commit is contained in:
parent
aeba94bcba
commit
55d31f7288
|
@ -31,5 +31,7 @@ redis_maxmemory_samples: 5
|
|||
redis_appendonly: "no"
|
||||
redis_appendfsync: "everysec"
|
||||
|
||||
redis_protected_mode: "yes"
|
||||
|
||||
# Add extra include files for local configuration/overrides.
|
||||
redis_includes: []
|
||||
|
|
|
@ -31,15 +31,27 @@
|
|||
stat:
|
||||
path: /etc/munin/plugins
|
||||
register: _munin_installed
|
||||
tags:
|
||||
- redis
|
||||
- munin
|
||||
|
||||
- include: munin.yml
|
||||
when: _munin_installed.stat.exists and _munin_installed.stat.isdir
|
||||
tags:
|
||||
- redis
|
||||
- munin
|
||||
|
||||
- name: is NRPE present ?
|
||||
stat:
|
||||
path: /etc/nagios/nrpe.d/evolix.cfg
|
||||
check_mode: no
|
||||
register: nrpe_evolix_config
|
||||
tags:
|
||||
- redis
|
||||
- nrpe
|
||||
|
||||
- include: nrpe_stretch.yml
|
||||
when: ansible_distribution_release == "stretch" and nrpe_evolix_config.stat.exists == true
|
||||
tags:
|
||||
- redis
|
||||
- nrpe
|
||||
|
|
|
@ -32,6 +32,8 @@ rdbcompression {{ redis_rdbcompression }}
|
|||
dbfilename {{ redis_dbfilename }}
|
||||
dir {{ redis_dbdir }}
|
||||
|
||||
protected-mode {{ redis_protected_mode }}
|
||||
|
||||
# maxclients 128
|
||||
|
||||
{% if redis_maxmemory %}
|
||||
|
|
Loading…
Reference in a new issue