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.
65 lines
1.4 KiB
YAML
65 lines
1.4 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
|
|
notify: restart munin-node
|
|
|
|
- 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
|
|
notify: restart munin-node
|
|
|
|
- name: copy global config
|
|
copy:
|
|
src: munin/munin_global_conf
|
|
dest: /etc/munin/plugin-conf.d/global
|
|
notify: restart munin-node
|
|
|
|
- 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 }}"
|
|
notify: restart munin-node
|
|
|
|
- name: start and enable munin-node
|
|
systemd:
|
|
name: munin-node.service
|
|
enabled: yes
|
|
state: started
|