according to the description on https://hub.docker.com/r/ansible/ansible the Docker image
ansible/ansible is "[...] for automated testing of Ansible. They do not
include Ansible and are not for end users."
So please don't use that image if you want to run Ansible.
I'm not sure whether there are pre-built images for running Ansible,
especially because the requirements depend a lot on which plugins you
are using. You probably need to create your own: base it on some image
which includes Python and install Ansible and all requirements via pip.
Cheers,
Felix
PS: please note that not all participants are male on this mailing list.
It would be nice if there was an easy way to do this, I am tring to get away from the VM route and go with containers. I will have to keep researching.
I created a docker container to install Ansible for testing different versions, etc. As folks here have mentioned, it’s not really the purpose of the ansible/ansible image. However, I just run it with a sleep command at run time, for like 29000 seconds (eight hours) since the container has to execute something. It’s a bit of a hack, but then I have a purpose built docker container with Ansible.