mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 00:33:09 +00:00
Docker module: restarted should update the container when necessary
This commit is contained in:
@@ -1643,6 +1643,10 @@ def restarted(manager, containers, count, name):
|
||||
|
||||
containers.refresh()
|
||||
|
||||
for container in manager.get_differing_containers():
|
||||
manager.stop_containers([container])
|
||||
manager.remove_containers([container])
|
||||
|
||||
manager.restart_containers(containers.running)
|
||||
started(manager, containers, count, name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user