You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ffmyk-ansible/roles/install_monitoring/tasks/install_munin.yml

61 lines
1.3 KiB
YAML

---
- name: install munin
pacman:
name: munin-node
state: present
- name: copy munin-node config
template:
src: munin-node.conf.j2
dest: /etc/munin/munin-node.conf
- name: copy fastd plugin
copy:
src: munin/munin_fastd_plugin
dest: /usr/lib/munin/plugins/fastd_
mode: 0755
- name: copy dhcp-pool plugin
copy:
src: munin/munin_dhcp_pool_plugin
dest: /usr/lib/munin/plugins/dhcp-pool
mode: 0755
- name: copy fastd plugin config
copy:
src: munin/munin_fastd_conf
dest: /etc/munin/plugin-conf.d/fastd
- name: copy global config
copy:
src: munin/munin_global_conf
dest: /etc/munin/plugin-conf.d/global
- name: install netstat
pacman:
name: net-tools
state: present
- name: install perl-lwp-protocol-https
pacman:
name: perl-lwp-protocol-https
state: present
- name: install perl-json
pacman:
name: perl-json
state: present
- name: enable munin plugins
file:
path: /etc/munin/plugins/{{ item.name }}
src: /usr/lib/munin/plugins/{{ item.plugin | default( item.name ) }}
state: link
with_items: "{{ munin_node_plugins }}"
- name: start and enable munin-node
systemd:
name: munin-node.service
enabled: yes
state: started