Skip to content

srsp/docker-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build Docker Hub

docker-ansible

Docker image with

  • ansible
  • ansible-galaxy
  • ansible-lint
  • curl
  • git
  • openssh-client
  • python3-hcloud
  • rsync

Usage

docker pull srsp/ansible

Developers

This image uses the latest Ubuntu LTS release as base image and installs the latest ansible package that the official Ansible Ubuntu PPA provides. ansible-lint is installed in its own virtual environment to avoid distro package compatibility issues with the PPA Ansible packages.

Build the image with:

docker build -f Dockerfile -t ansible:test .

The build runs a smoke test for ansible, ansible-galaxy, and ansible-lint. If one of them is missing, not executable or fails during execution, docker build fails immediately.

You can also re-run the same check against a built image:

docker run --rm ansible:test /usr/local/bin/verify-tools

Know Problems

The build fails with an error complaining about not finding a particular python version.

This can happen, if Ubuntu decides to ship a new minor version of python. In this case you can check which versions are actually ship and update them in the Dockerfile.

About

Ansible docker image with some extra tools

Topics

Resources

License

Stars

Watchers

Forks

Contributors