11 lines
333 B
YAML
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' |