Open elduds opened 3 years ago
The module right now only handles plain docker networks. If someone wants to extend it with swarm functionality, it would need to be backwards compatible and still work fine without swarm. A related issue is #14; see also https://github.com/ansible/ansible/issues/65742#issuecomment-565757991.
I would be interested too.
SUMMARY
Support manipulation of swarm ingress network.
ISSUE TYPE
The ingress network is a special case in that it is a swarm network and there can only be one of them, so some special logic would be required in the module (or a new module created?). Currently the logic for manipulating docker networks does not work for the ingress.
COMPONENT NAME
docker_network.py
ADDITIONAL INFORMATION
Current use case is to delete and recreate the ingress network with a larger subnet CIDR than the swarm default network sizes (subnet_size and default_addr_pool from the docker_swarm module) upon initial swarm creation. Workaround is doing this manually with docker network CLI following the instructions here: https://docs.docker.com/network/overlay/#customize-the-default-ingress-network
Currently using play
Results in