prometheus-node-exporter : le dossier doit exister avant de copier dedans

main
Guillaume Lévy 2026-07-22 08:10:35 +02:00
parent 59f9789f75
commit 5f53c899a0
1 changed files with 9 additions and 0 deletions

View File

@ -70,6 +70,15 @@
enabled: true enabled: true
state: started state: started
- name: Ensure destination directory exists
file:
path: /usr/share/prometheus-node-exporter
state: directory
owner: root
group: root
mode: '0755'
when: ansible_distribution_release != "bookworm"
# Install new APT textfile collector, it might be upstreamed one day # Install new APT textfile collector, it might be upstreamed one day
# https://github.com/prometheus-community/node-exporter-textfile-collector-scripts/pull/35 # https://github.com/prometheus-community/node-exporter-textfile-collector-scripts/pull/35
- name: Patch APT textfile collector - name: Patch APT textfile collector