Using the docker module in the master branch. I have one task that ensures a particular docker container is running with a given name. And then I have a handler that tries to restart that container (by name) when any configuration changes.
However, it looks like the docker module requires you to specify the parameters all over again. IMO, you should be able to say:
name: Restart a Container
docker: name=“existing_container” state=“restarted”
but instead, I have to respecify all my docker parameters in the handler:
name: Restart a Container
docker: name=“existing_container” state=“restarted” ports=“…” volumes=“…”
I would think we support the first form and the command just fails if there isn’t an existing container with that name. Thoughts?