Lot of stuff

Signed-off-by: Emmy D'Anello <ynerant@crans.org>
This commit is contained in:
2023-01-12 12:36:32 +01:00
parent de76ae0085
commit 7f4f846408
27 changed files with 103 additions and 47 deletions

View File

@ -8,7 +8,7 @@
retries: 3
until: apt_result is succeeded
- name: Install Prometheus node-exporter-collectors (bullseye)
- name: Install Prometheus node-exporter-collectors
apt:
update_cache: true
name: prometheus-node-exporter-collectors
@ -16,8 +16,6 @@
register: apt_result
retries: 3
until: apt_result is succeeded
when:
- ansible_lsb.codename == 'bullseye'
- name: Make Prometheus node-exporter listen on adm only
lineinfile:
@ -32,14 +30,3 @@
name: prometheus-node-exporter
enabled: true
state: started
# Install new APT textfile collector, it might be upstreamed one day
# https://github.com/prometheus-community/node-exporter-textfile-collector-scripts/pull/35
- name: Patch APT textfile collector
copy:
src: apt.sh
dest: /usr/share/prometheus-node-exporter/apt.sh
owner: root
group: root
mode: 0755
when: ansible_distribution_release != "bullseye"