[prometheus-nginx] Ensure that nginx is installed, e.g. in root playbook

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-03-15 10:50:29 +01:00
parent 0c363aabf3
commit 7cff2ba05b
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 3 additions and 1 deletions
roles/prometheus-nginx-exporter/tasks

View File

@ -2,7 +2,9 @@
- name: Install prometheus-nginx-exporter
apt:
update_cache: true
name: prometheus-nginx-exporter
name:
- nginx # Nginx may be not already installed
- prometheus-nginx-exporter
register: apt_result
retries: 3
until: apt_result is succeeded