prometheus: only support Debian buster

This commit is contained in:
Markus 2019-07-09 12:38:32 +02:00
parent 909e767b36
commit f1dec82592
1 changed files with 4 additions and 3 deletions

View File

@ -1,10 +1,11 @@
---
- name: Enable backports for prometheus
apt_repository: repo='deb http://httpredir.debian.org/debian stretch-backports main'
- name: Check OS release
fail: msg="This role is only supported on Debian buster"
when: not (ansible_distribution == 'Debian' and ansible_distribution_release == 'buster')
- name: Install prometheus
apt: name=prometheus default_release=stretch-backports
apt: name=prometheus
- name: Configure prometheus
template: src=prometheus.yml.j2 dest=/etc/prometheus/prometheus.yml