Jérémy Lecour
ee21973371
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2777|524|2253|2462|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a>
gitea/ansible-roles/pipeline/head This commit looks good
Fully Qualified Collection Name
39 lines
912 B
YAML
39 lines
912 B
YAML
---
|
|
- name: Choose packages (Oracle)
|
|
ansible.builtin.set_fact:
|
|
multi: "multi_"
|
|
when: memcached_instance_name is defined
|
|
|
|
- name: is Munin present ?
|
|
ansible.builtin.stat:
|
|
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
|
|
ansible.builtin.apt:
|
|
name:
|
|
- 'munin-plugins-extra'
|
|
- 'libcache-memcached-perl'
|
|
state: present
|
|
|
|
- name: Enable core Munin plugins
|
|
ansible.builtin.file:
|
|
src: '/usr/share/munin/plugins/memcached_'
|
|
dest: /etc/munin/plugins/{{ multi }}{{ item }}
|
|
state: link
|
|
loop:
|
|
- memcached_bytes
|
|
- memcached_counters
|
|
- memcached_rates
|
|
notify: restart munin-node
|
|
|
|
when: munin_node_plugins_config.stat.exists
|
|
tags:
|
|
- memcached
|
|
- munin
|