2017-06-02 10:45:01 +02:00
|
|
|
---
|
2018-06-14 17:13:20 +02:00
|
|
|
- name: Choose packages (Oracle)
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.set_fact:
|
2020-04-23 12:01:01 +02:00
|
|
|
multi: "multi_"
|
2024-03-11 10:54:36 +01:00
|
|
|
when: memcached_instance_name | length > 0
|
2017-06-02 10:45:01 +02:00
|
|
|
|
|
|
|
- name: is Munin present ?
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.stat:
|
2017-06-02 10:45:01 +02:00
|
|
|
path: /etc/munin/plugin-conf.d/munin-node
|
|
|
|
check_mode: no
|
|
|
|
register: munin_node_plugins_config
|
|
|
|
tags:
|
|
|
|
- memcached
|
|
|
|
- munin
|
|
|
|
|
|
|
|
- block:
|
|
|
|
- name: Install munin-plugins-extra and libcache-memcached-perl for Munin
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.apt:
|
2019-12-31 15:25:10 +01:00
|
|
|
name:
|
|
|
|
- 'munin-plugins-extra'
|
|
|
|
- 'libcache-memcached-perl'
|
2017-06-02 10:45:01 +02:00
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Enable core Munin plugins
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.file:
|
2017-06-02 10:45:01 +02:00
|
|
|
src: '/usr/share/munin/plugins/memcached_'
|
2018-06-14 17:13:20 +02:00
|
|
|
dest: /etc/munin/plugins/{{ multi }}{{ item }}
|
2017-06-02 10:45:01 +02:00
|
|
|
state: link
|
2021-05-04 14:18:40 +02:00
|
|
|
loop:
|
2017-06-02 10:45:01 +02:00
|
|
|
- memcached_bytes
|
|
|
|
- memcached_counters
|
|
|
|
- memcached_rates
|
|
|
|
notify: restart munin-node
|
|
|
|
|
|
|
|
when: munin_node_plugins_config.stat.exists
|
|
|
|
tags:
|
|
|
|
- memcached
|
|
|
|
- munin
|