ansible/roles/prometheus/tasks/main.yml

15 lines
428 B
YAML
Raw Normal View History

2018-07-19 16:29:44 +02:00
---
- name: Enable backports for prometheus
apt_repository: repo='deb http://httpredir.debian.org/debian stretch-backports main'
- name: Install prometheus
apt: name=prometheus default_release='stretch-backports'
- name: Configure prometheus
template: src=prometheus.yml.j2 dest=/etc/prometheus/prometheus.yml
notify: Restart prometheus
- name: Enable prometheus
2018-07-26 10:57:58 +02:00
service: name=prometheus state=started enabled=yes