ansible/roles/prometheus/tasks/main.yml

12 lines
264 B
YAML
Raw Normal View History

2018-07-19 16:29:44 +02:00
---
- name: Install prometheus
2019-10-07 15:36:50 +02:00
apt: name=prometheus
2018-07-19 16:29:44 +02:00
- 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