I'm running certbot within a docker container. I'm using ansible to start it via docker_compose
.
When the container is started, certbot takes a little while to do its thing, and then the container exits (with results printed to stdout and to a log).
But when automated via ansible, it starts the container and then moves to the next task. So I don't know whether the process succeeded, I only know that the container was started.
How can I make ansible wait for it to exit, so I can get the result by querying stdout or the log?