---
- 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
  tags:
    - munin
- 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