2014-08-16 23:35:57 +02:00
|
|
|
---
|
|
|
|
- name: Install munin-node
|
2022-09-10 17:09:12 +02:00
|
|
|
ansible.builtin.apt: name=munin-node state=present
|
2016-08-14 15:33:48 +02:00
|
|
|
tags: packages
|
2014-08-16 23:35:57 +02:00
|
|
|
|
|
|
|
# some nice things to have for munin-node on Ubuntu
|
2018-04-02 14:51:29 +02:00
|
|
|
# libwww-perl: for munin's nginx_status check
|
2014-08-16 23:35:57 +02:00
|
|
|
- name: Install munin-node deps
|
2022-09-10 17:09:12 +02:00
|
|
|
ansible.builtin.apt: name=libwww-perl state=present
|
2016-08-14 15:33:48 +02:00
|
|
|
tags: packages
|
2014-08-16 23:35:57 +02:00
|
|
|
|
|
|
|
- name: Create munin-node.conf
|
2022-09-10 17:09:12 +02:00
|
|
|
ansible.builtin.template: src=munin-node.conf.j2 dest=/etc/munin/munin-node.conf
|
2017-10-31 21:39:34 +01:00
|
|
|
notify:
|
2014-08-16 23:35:57 +02:00
|
|
|
- restart munin-node
|
|
|
|
|
|
|
|
- name: Configure munin-node
|
2022-09-10 17:09:12 +02:00
|
|
|
ansible.builtin.shell: munin-node-configure --shell --families=contrib,auto | sh -x
|
2014-08-16 23:35:57 +02:00
|
|
|
notify:
|
|
|
|
- restart munin-node
|
|
|
|
|
|
|
|
- name: Start munin-node
|
2022-09-10 17:09:12 +02:00
|
|
|
ansible.builtin.systemd: name=munin-node state=started enabled=true
|
2014-08-16 23:35:57 +02:00
|
|
|
|
|
|
|
# vim: set ts=2 sw=2:
|