Use multi memcached script when needed

This commit is contained in:
Tristan PILAT 2018-06-14 17:13:20 +02:00
parent ba4db7acf8
commit aace200270
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,8 @@
---
- name: Choose packages (Oracle)
set_fact:
multi: "multi_"
when: memcached_instance_name != False
- name: is Munin present ?
stat:
@ -21,7 +25,7 @@
- name: Enable core Munin plugins
file:
src: '/usr/share/munin/plugins/memcached_'
dest: /etc/munin/plugins/{{ item }}
dest: /etc/munin/plugins/{{ multi }}{{ item }}
state: link
with_items:
- memcached_bytes