configure docker network separately

This commit is contained in:
2026-08-06 00:25:12 +02:00
parent c18487ac23
commit c349880bf5
9 changed files with 22 additions and 24 deletions
@@ -1,9 +1,4 @@
---
- name: Create a Docker network for Prometheus
docker_network:
name: monitoring_network
state: present
- name: Pull Prometheus Docker image
docker_image:
name: prom/prometheus
@@ -32,5 +27,5 @@
volumes:
- /etc/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- name: monitoring_network
- name: monitoring