summaryrefslogtreecommitdiff
path: root/roles/router/tasks/main.yml
blob: 5586edf081d228432a90a4c2ad6a1bf29e079fa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
- name: Install routing software
  package:
    name:
      - bird2
      - iperf3
      - mtr-tiny
    state: present
- name: Check if munin plugin dir exists
  stat:
    path: /usr/local/share/munin/plugins/
  register: munin_plugin_dir
- name: Copy munin plugin
  copy:
    src: munin_bird
    dest: /usr/local/share/munin/plugins/bird
    mode: '0750'
  when:
    - munin_plugin_dir.stat.isdir is defined and munin_plugin_dir.stat.isdir
  tags:
    - munin
- name: Apply tinc rule
  import_role:
    name: tinc