You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run ansible-playbook -i "127.0.0.1," -vvv ~/playbook.yml
EXPECTED RESULTS
testnet network should be recreated with the updated ipam_config.
Ideally, Ansible would also re-connect services based on the connected and append arguments, just as it would containers (I haven't tested this, but am guessing that because it does not appear to check services at all, the module will not do this)
ACTUAL RESULTS
The task chokes because the module attempts to remove the network while it is still connected to the test_test service.
The issue here is that services need to be updated to remove the network. The Docker command-line for this would be: docker service update --network-rm testnet test_test.
Migrated from ansible/ansible#65742
SUMMARY
docker_network
doesn't check if a network is connected to any services before trying to remove itISSUE TYPE
COMPONENT NAME
docker_network
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Running ansible locally on Ubuntu 18.04
STEPS TO REPRODUCE
Create:
~/docker-compose.yml
:playbook.yml
:Run
ansible-playbook -i "127.0.0.1," -vvv ~/playbook.yml
EXPECTED RESULTS
testnet
network should be recreated with the updated ipam_config.Ideally, Ansible would also re-connect services based on the
connected
andappend
arguments, just as it would containers (I haven't tested this, but am guessing that because it does not appear to check services at all, the module will not do this)ACTUAL RESULTS
The task chokes because the module attempts to remove the network while it is still connected to the
test_test
service.The issue here is that services need to be updated to remove the network. The Docker command-line for this would be:
docker service update --network-rm testnet test_test
.The text was updated successfully, but these errors were encountered: