2022-09-03 03:44:31 +02:00
|
|
|
---
|
|
|
|
- name: Install bird
|
|
|
|
apt:
|
2022-12-21 19:48:22 +01:00
|
|
|
name:
|
|
|
|
- bird2
|
|
|
|
- prometheus-bird-exporter
|
2022-09-03 03:44:31 +02:00
|
|
|
|
|
|
|
- name: Configure bird
|
|
|
|
template:
|
|
|
|
src: bird.conf.j2
|
|
|
|
dest: /etc/bird/bird.conf
|
|
|
|
owner: root
|
|
|
|
group: bird
|
|
|
|
mode: u=rw,g=r,o=
|
|
|
|
notify:
|
|
|
|
- Reload bird
|
|
|
|
|
2022-12-21 19:48:22 +01:00
|
|
|
- name: Configure prometheus-bird-exporter
|
|
|
|
template:
|
|
|
|
src: prometheus-bird-exporter.j2
|
|
|
|
dest: /etc/default/prometheus-bird-exporter
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: u=rw,g=r,o=
|
|
|
|
notify:
|
|
|
|
- Restart prometheus-bird-exporter
|
|
|
|
|
2022-09-03 03:44:31 +02:00
|
|
|
- name: Enable and start bird
|
|
|
|
systemd:
|
|
|
|
name: bird.service
|
|
|
|
state: started
|
|
|
|
enabled: true
|
2022-12-21 19:48:22 +01:00
|
|
|
|
|
|
|
- name: Enable and start prometheus-bird-exporter
|
|
|
|
systemd:
|
|
|
|
name: prometheus-bird-exporter.service
|
|
|
|
state: started
|
|
|
|
enabled: true
|
|
|
|
|
2022-09-03 03:44:31 +02:00
|
|
|
...
|