A Docker image with Ansible installed from pip and a few helpful dependencies.
This image is built from the python:3.x-slim image.
- DockerHub image:
joshbeard/ansible
- GitHub image:
ghcr.io/joshbeard/ansible
- Source Repository: https://github.com/joshbeard/docker-ansible
Dockerfile
: https://github.com/joshbeard/docker-ansible/blob/master/Dockerfile- Docker Hub: https://hub.docker.com/r/joshbeard/ansible
10.1.0
,10
,latest
(current)9.7.0
,9
(end of life November 2024)- See all tags
Refer to the Tag End of Life and Deletion section below for information about deprecated image tags.
- Ansible v10 Release Notes
- Ansible v9 Release Notes
- Ansible Releases and Maintenance
- Ansible Announcements Google Group
- Ansible package on PyPI
The following example demonstrates providing a private SSH key to use with Ansible and running a playbook:
docker run --rm -it \
-v ansible-ssh-private-key:/home/ansible/.ssh/id_rsa \
-v ${PWD}:/playbook \
-w /playbook \
joshbeard/ansible:latest \
ansible-playbook -i inventory.ini site.yml
A user named ansible
is created with a UID/GID of 1055
and a home directory
at /home/ansible
.
- Josh Beard, https://joshbeard.me
This Docker image will maintain tags that are supported upstream, as listed in the Ansible Releases and Maintenance document.
The following tags are for versions that have reached end of life and will be automatically deleted on the specified date.
Tag | Deletion Date |
---|---|
8 , 8.* |
November 30, 2024 |
9 , 9.* |
November 30, 2024 |