Commit bcfc6f01 authored by Paul's avatar Paul
Browse files

import fastd-exporter role

parent 75e553e1
Pipeline #5123 passed with stage
in 1 minute and 43 seconds
......@@ -50,3 +50,7 @@
fetch:
src: /etc/fastd/ffhl_mesh_gwvpn/pubkey.key
dest: artifacts/
- name: install fastd-exporter
import_role:
name: fastd-exporter
......@@ -72,22 +72,3 @@
modprobe:
name: batman-adv
state: present
# install prometheus-fastd-exporter
- name: install prometheus-fastd-exporter
tags: [prometheus-fastd-exporter, fastd]
notify: restart prometheus-fastd-exporter
block:
- name: download prometheus-fastd-exporter
get_url:
url: https://freifunk-luebeck.pages.chaotikum.org/prometheus-fastd-exporter/prometheus-fastd-exporter.deb
dest: /tmp/prometheus-fastd-exporter.deb
- name: install prometheus-fastd-exporter
apt:
state: present
deb: /tmp/prometheus-fastd-exporter.deb
- name: enable prometheus-fastd-exporter
systemd:
enabled: yes
name: prometheus-fastd-exporter
......@@ -6,7 +6,6 @@
update_cache: yes
state: present
name:
# necessary packets
- batctl
- fastd=22-2~bpo11+1
- iproute2
......@@ -17,23 +16,3 @@
modprobe:
name: batman-adv
state: present
# install prometheus-fastd-exporter
- name: install prometheus-fastd-exporter
tags: [prometheus-fastd-exporter, fastd]
block:
- name: download prometheus-fastd-exporter
get_url:
url: https://freifunk-luebeck.pages.chaotikum.org/prometheus-fastd-exporter/prometheus-fastd-exporter.deb
dest: /tmp/prometheus-fastd-exporter.deb
- name: install prometheus-fastd-exporter
command: dpkg -i --force-confold /tmp/prometheus-fastd-exporter.deb
- name: reload systemd
systemd:
daemon_reload: yes
- name: enable prometheus-fastd-exporter
systemd:
state: restarted
enabled: yes
name: prometheus-fastd-exporter
......@@ -17,3 +17,7 @@
- import_tasks: dhcpd.yml
tags: [dhcp]
- name: install fastd-exporter
import_role:
name: fastd-exporter
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment