It seems the docker module for ansible is geared toward spinning up new
containers, but not restarting an existing running container.
In command line, all you need is the container name. It is as simple as
sudo docker stop
sudo docker start
But Ansible's docker requires 'image', which complic
I have two shell tasks. The first one runs a check and returns a list of
ids to be removed. The second one will remove these ids.
The stdout of the first task looks like this:
1
2
3
4
which then gets fed into the second task to remove 1, 2, 3, 4
But if the first one cannot find ids to be remo