From 582b32b3838e205ec0f00e4b97b99d4e768818d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Norman=20Hauk=C3=A5s?= Date: Tue, 23 Apr 2024 09:50:40 +0200 Subject: [PATCH] add munin role --- host_vars/jake.box.nilsnh.no.yml | 1 + roles/munin/tasks/main.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 roles/munin/tasks/main.yml diff --git a/host_vars/jake.box.nilsnh.no.yml b/host_vars/jake.box.nilsnh.no.yml index 388cdd8..0794ea5 100644 --- a/host_vars/jake.box.nilsnh.no.yml +++ b/host_vars/jake.box.nilsnh.no.yml @@ -17,6 +17,7 @@ sendmail_revaliases: git: "{{ machine_from_email }}" machine_from_email: "noreply+jake@nilsnh.no" machine_notifications_receiver: "mail@nilsnh.no" +munin_master: true forgejo_domain: "code.on.nilsnh.no" forgejo_from: "\"Forgejo at nilsnh.no\" <{{ machine_from_email }}>" firewall_allowed_ports: diff --git a/roles/munin/tasks/main.yml b/roles/munin/tasks/main.yml new file mode 100644 index 0000000..6c7eec3 --- /dev/null +++ b/roles/munin/tasks/main.yml @@ -0,0 +1,15 @@ +--- + +- name: install munin + ansible.builtin.package: + name: + - munin + state: present + when: munin_master is true + +- name: install munin-node for monitoring + ansible.builtin.package: + name: + - munin-node + state: present +