12 lines
344 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
restart: true
network_mode: host
pid_mode: host
restart_policy: always
volumes:
- '/:/host:ro,rslave'