Add option to not create shared Docker network
This commit is contained in:
parent
925c9d189f
commit
f9101e319f
|
@ -4,3 +4,5 @@
|
|||
apps_include:
|
||||
- minecraft
|
||||
- watchtower
|
||||
|
||||
apps_create_shared_docker_network: false
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue