redis: works with munin installed or not
This commit is contained in:
parent
fb955ae62c
commit
5c7ec65831
|
@ -3,3 +3,8 @@
|
||||||
service:
|
service:
|
||||||
name: "{{ redis_daemon }}"
|
name: "{{ redis_daemon }}"
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
- name: restart munin-node
|
||||||
|
service:
|
||||||
|
name: munin-node
|
||||||
|
state: restarted
|
||||||
|
|
|
@ -24,4 +24,10 @@
|
||||||
tags:
|
tags:
|
||||||
- redis
|
- redis
|
||||||
|
|
||||||
|
- name: Is Munin installed
|
||||||
|
stat:
|
||||||
|
path: /etc/munin/plugins
|
||||||
|
register: _munin_installed
|
||||||
|
|
||||||
- include: munin.yml
|
- include: munin.yml
|
||||||
|
when: _munin_installed.stat.exists && _munin_installed.stat.isdir
|
||||||
|
|
Loading…
Reference in a new issue