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

View file

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