Jérémy Lecour
00fe225a3c
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2615|7|2608|177|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/278//ansiblelint">Evolix » ansible-roles » unstable #278</a>
gitea/ansible-roles/pipeline/head This commit looks good
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
---
|
|
|
|
- name: is Munin present ?
|
|
ansible.builtin.stat:
|
|
path: /etc/munin/plugin-conf.d/munin-node
|
|
check_mode: no
|
|
register: munin_node_plugins_config
|
|
tags:
|
|
- bind
|
|
- munin
|
|
|
|
- name: Enable munin plugins for authoritative server
|
|
ansible.builtin.file:
|
|
src: "/usr/share/munin/plugins/{{ item }}"
|
|
dest: "/etc/munin/plugins/{{ item }}"
|
|
state: link
|
|
loop:
|
|
- bind9
|
|
- bind9_rndc
|
|
notify: restart munin-node
|
|
tags:
|
|
- bind
|
|
- munin
|
|
when:
|
|
- bind_authoritative_server | bool
|
|
- munin_node_plugins_config.stat.exists
|
|
|
|
- name: Enable munin plugins for recursive server
|
|
ansible.builtin.file:
|
|
src: "/usr/share/munin/plugins/{{ item }}"
|
|
dest: "/etc/munin/plugins/{{ item }}"
|
|
state: link
|
|
loop:
|
|
- bind9
|
|
notify: restart munin-node
|
|
tags:
|
|
- bind
|
|
- munin
|
|
when:
|
|
- bind_recursive_server | bool
|
|
- bind_query_file_enabled | bool
|
|
- munin_node_plugins_config.stat.exists
|
|
|
|
- name: Add munin plugin configuration
|
|
ansible.builtin.template:
|
|
src: munin-env_bind9.j2
|
|
dest: /etc/munin/plugin-conf.d/bind9
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
force: true
|
|
notify: restart munin-node
|
|
tags:
|
|
- bind
|
|
- munin
|
|
when: munin_node_plugins_config.stat.exists
|