I want to use ansible to know whether a docker stack is deployed. In the shell I'd do something like: docker stack services -q my_stack_name
.
I could use the shell
module, but then I have to manually handle errors and idempotence.
Is there a module for this? (I looked over the docs of docker_swarm_info
but it isn't appropriate.)