Ansible Core + additions.
10K+
Ansible Core with additions.
If you find bugs or got improvements of the container, feel free to submit it here.
This repos stop supporting versions as it gets EOL according to Ansible - Releases and maintenance.
v2.21-almalinuxv2.21-alpinev2.21-ubuntuv2.20-almalinuxv2.20-alpinev2.20-ubuntuv2.19-almalinuxv2.19-alpinev2.19-ubuntuv2.18-almalinuxv2.18-alpinev2.18-ubuntuv2.21, latest-alpine, latest
v2.21-alpinev2.20
v2.20-alpinev2.19
v2.19-alpinev2.18
v2.18-alpinelatest-almalinux
v2.20-almalinuxlatest-ubuntu
v2.20-ubuntuContainer will run as user ansible-10000 by default. However, when you build your own image based on this root will be set and you need to set it back yourself to ansible-10000 if you want.
ansible-1000
ansible-1001
ansible-10000
Note! All ansible users will have sudo rights. This is for convenience since some roles etc are not that well implemented.
Below assume a playbook.yml file is located in current directory:
# docker run --rm -v ${PWD}:/mnt haxorof/ansible-core
To override the default command set you can just add your own arguments after the images name:
# docker run --rm -v ${PWD}:/mnt haxorof/ansible-core ansible -m setup -c local localhost
Start a Python container in a terminal:
# docker run -it --rm --name=target python sh
In a second terminal run the following which will do an Ansible ping to that Python container:
# docker run --rm -v /var/run/docker.sock:/var/run/docker.sock haxorof/ansible-core sh -c "echo 'target ansible_connection=docker' > hosts && ansible -m ping -i hosts all"
Content type
Image
Digest
sha256:07d3a370c…
Size
458.4 MB
Last updated
4 days ago
docker pull haxorof/ansible-core:v2.16-ubuntu