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: []
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
with_items:
|
||||||
- redis-server
|
- redis-server
|
||||||
- redis-tools
|
- redis-tools
|
||||||
tags:
|
tags:
|
||||||
- redis
|
- redis
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: Redis is configured.
|
- name: Redis is configured.
|
||||||
template:
|
template:
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
notify: restart redis
|
notify: restart redis
|
||||||
tags:
|
tags:
|
||||||
- redis
|
- redis
|
||||||
|
|
||||||
- name: Redis is running and enabled on boot.
|
- name: Redis is running and enabled on boot.
|
||||||
service:
|
service:
|
||||||
|
@ -25,21 +25,33 @@
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
tags:
|
tags:
|
||||||
- redis
|
- redis
|
||||||
|
|
||||||
- name: Is Munin installed
|
- name: Is Munin installed
|
||||||
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