summaryrefslogtreecommitdiff
path: root/roles/monitoring/tasks/main.yml
blob: daa2d05f6fe3ea76aecbf2fb752e70a64891d5dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
- name: Install Munin
  package:
    name:
      - munin-node
    state: present
- name: Create ping plugin
  ansible.builtin.file:
    src: /usr/share/munin/plugins/multiping
    dest: /etc/munin/plugins/multiping
    owner: root
    group: root
    state: link
- name: Create ping config
  copy:
    dest: /etc/munin/plugin-conf.d/multiping
    owner: root
    group: root
    mode: "0644"
    content: |
      [multiping]
        env.host 1.1.1.1
        env.ping_args -c 2