Add option to not create shared Docker network

This commit is contained in:
Sam A. 2024-08-05 20:09:46 +02:00
parent 925c9d189f
commit f9101e319f
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
2 changed files with 3 additions and 1 deletions

View file

@ -4,3 +4,5 @@
apps_include:
- minecraft
- watchtower
apps_create_shared_docker_network: false

View file

@ -8,7 +8,7 @@
ipam_config:
- subnet: 172.17.2.0/24
- subnet: fd02::/64
state: present
state: "{{ 'present' if apps_create_shared_docker_network is undefined or apps_create_shared_docker_network else 'absent' }}"
- name: Create Docker network for Postfix
community.docker.docker_network: