diff --git a/lib/ansible/modules/cloud/docker/docker.py b/lib/ansible/modules/cloud/docker/docker.py index 6422f449ef0..3d8521b4d43 100644 --- a/lib/ansible/modules/cloud/docker/docker.py +++ b/lib/ansible/modules/cloud/docker/docker.py @@ -1782,6 +1782,8 @@ def restarted(manager, containers, count, name): manager.stop_containers([container]) manager.remove_containers([container]) + containers.refresh() + manager.restart_containers(containers.running) started(manager, containers, count, name)