aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/prometheus_exporter/tasks/ubuntu_focal.yaml
blob: 3d7064355e9613784a5f576a790b7dc86f1b0673 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
# file: roles/prometheus_exporter/tasks/ubuntu_focal.yaml

- name: Inst - Update Package Cache (APT)
  apt:
    update_cache: yes
    cache_valid_time: 3600
  tags:
    - prometheus-inst-prerequisites

- name: Inst - Prerequisites
  package:
    name: "init-system-helpers"
    default_release: "focal-backports"
    state: latest
  tags:
    - prometheus-inst-prerequisites

- name: Inst - Prometheus Node Exporter
  apt:
    deb: "{{ ne_packages }}"
  notify:
    - "Restart Prometheus Node Exporter"
  tags:
    - prometheus-inst-node-exporter

- name: Inst - Prometheus Blackbox Exporter
  apt:
    deb: "{{ be_packages }}"
  notify:
    - "Restart Prometheus Blackbox Exporter"
  tags:
    - prometheus-inst-blackbox-exporter