ansible/roles/prometheus_bird/tasks/main.yml

21 lines
479 B
YAML

---
- name: Install prometheus-bird-exporter
apt:
name: prometheus-bird-exporter
- 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
- name: Enable and start prometheus-bird-exporter
systemd:
name: prometheus-bird-exporter.service
state: started
enabled: true
...