redis: works with munin installed or not

This commit is contained in:
Jérémy Lecour 2017-06-12 15:28:23 +02:00 committed by Jérémy Lecour
parent fb955ae62c
commit 5c7ec65831
2 changed files with 11 additions and 0 deletions

View file

@ -3,3 +3,8 @@
service:
name: "{{ redis_daemon }}"
state: restarted
- name: restart munin-node
service:
name: munin-node
state: restarted

View file

@ -24,4 +24,10 @@
tags:
- redis
- name: Is Munin installed
stat:
path: /etc/munin/plugins
register: _munin_installed
- include: munin.yml
when: _munin_installed.stat.exists && _munin_installed.stat.isdir