Sign inSign up

ccoley/ansible

By ccoley

•Updated 6 months ago

Image
0

4.0K

ccoley/ansible repository overview

This image contains Ansible and common dependencies for use as an isolated execution environment.

⁠Tags

Images are tagged with the version of ansible-core included in the image. There are also python<version> tags if you need to support managed nodes running specific versions of Python.

  • 2.20, python3.9, latest
  • 2.18, python3.8
  • 2.16, python2.7, python3.6 EOL, but kept around for use with managed nodes that only support Python 2.7
  • 2.10 EOL, but kept around for playbooks that only work with classic Ansible
  • 2.9 EOL, but kept around for playbooks that only work with classic Ansible

⁠Usage

The working directory is /ansible, so mount your ansible playbooks and inventory files into that directory.

docker run --rm -it -v $(pwd):/ansible ccoley/ansible:latest ansible -m ping all

If you want to use any files/directories in your home directory from within the container, then you can mount them to /tmp/home in the container and they'll be copied to the container user's home directory. This is useful for SSH keys and known_hosts, auth configurations, etc.

docker run --rm -it -v $(pwd):/ansible -v ~/.ssh:/tmp/home/.ssh:ro ccoley/ansible:latest ansible -m ping all

Tag summary

Content type

Image

Digest

sha256:532cb558b…

Size

108.8 MB

Last updated

6 months ago

docker pull ccoley/ansible