2025-07-12 23:41:13 -04:00

11 lines
333 B
YAML

- name: Deploy node exporter container
community.docker.docker_container:
name: prometheus-node-exporter
image: quay.io/prometheus/node-exporter:latest
command: "--path.rootfs=/host"
state: started
network_mode: host
pid_mode: host
restart_policy: unless-stopped
volumes:
- '/:/host:ro,rslave'