How to start Docker containers on boot, managed with Ansible (Tower)
You could use restart policies.
I do not know how exactly ansible
creates containers. But usually you could add a parameter on command line like:
docker run --restart=always ...
restart_policy: always
or
restart_policy: unless-stopped
link: https://docs.ansible.com/ansible/latest/modules/docker_container_module.html