ansible/roles/prometheus/tasks/main.yml

15 lines
426 B
YAML
Raw Normal View History

2018-10-06 22:19:37 +02:00
---
- name: Enable backports for prometheus
apt_repository: repo='deb http://httpredir.debian.org/debian stretch-backports main'
- name: Install prometheus
2019-03-09 18:38:07 +01:00
apt: name=prometheus default_release=stretch-backports
2018-10-06 22:19:37 +02:00
- name: Configure prometheus
template: src=prometheus.yml.j2 dest=/etc/prometheus/prometheus.yml
notify: Restart prometheus
- name: Enable prometheus
service: name=prometheus state=started enabled=yes