Skip to content

joshbeard/docker-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

ansible

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

Project Resources

Tags

  • 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 Release Notes

Running

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.

Maintainers

Tag End of Life and Deletion

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