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_appendonly: "no"
|
||||||
redis_appendfsync: "everysec"
|
redis_appendfsync: "everysec"
|
||||||
|
|
||||||
|
redis_protected_mode: "yes"
|
||||||
|
|
||||||
# Add extra include files for local configuration/overrides.
|
# Add extra include files for local configuration/overrides.
|
||||||
redis_includes: []
|
redis_includes: []
|
||||||
|
|
|
@ -31,15 +31,27 @@
|
||||||
stat:
|
stat:
|
||||||
path: /etc/munin/plugins
|
path: /etc/munin/plugins
|
||||||
register: _munin_installed
|
register: _munin_installed
|
||||||
|
tags:
|
||||||
|
- redis
|
||||||
|
- munin
|
||||||
|
|
||||||
- include: munin.yml
|
- include: munin.yml
|
||||||
when: _munin_installed.stat.exists and _munin_installed.stat.isdir
|
when: _munin_installed.stat.exists and _munin_installed.stat.isdir
|
||||||
|
tags:
|
||||||
|
- redis
|
||||||
|
- munin
|
||||||
|
|
||||||
- name: is NRPE present ?
|
- name: is NRPE present ?
|
||||||
stat:
|
stat:
|
||||||
path: /etc/nagios/nrpe.d/evolix.cfg
|
path: /etc/nagios/nrpe.d/evolix.cfg
|
||||||
check_mode: no
|
check_mode: no
|
||||||
register: nrpe_evolix_config
|
register: nrpe_evolix_config
|
||||||
|
tags:
|
||||||
|
- redis
|
||||||
|
- nrpe
|
||||||
|
|
||||||
- include: nrpe_stretch.yml
|
- include: nrpe_stretch.yml
|
||||||
when: ansible_distribution_release == "stretch" and nrpe_evolix_config.stat.exists == true
|
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 }}
|
dbfilename {{ redis_dbfilename }}
|
||||||
dir {{ redis_dbdir }}
|
dir {{ redis_dbdir }}
|
||||||
|
|
||||||
|
protected-mode {{ redis_protected_mode }}
|
||||||
|
|
||||||
# maxclients 128
|
# maxclients 128
|
||||||
|
|
||||||
{% if redis_maxmemory %}
|
{% if redis_maxmemory %}
|
||||||
|
|
Loading…
Reference in a new issue