# file: roles/prometheus_exporter/tasks/main.yaml
- name: Inst - Update Package Cache (APT)
- apt:
+ ansible.builtin.apt:
update_cache: true
cache_valid_time: 3600
when:
- prometheus-inst
- name: Inst - Prerequisites
- package:
+ ansible.builtin.package:
name: "{{ packages | flatten(levels=1) }}"
state: latest
tags:
- prometheus-conf-blackbox-exporter
- name: Conf - Prometheus Blackbox Exporter
- copy:
+ ansible.builtin.copy:
src: "files/blackbox.yml"
dest: "/etc/prometheus/blackbox.yml"
tags: