Skip to content

Instantly share code, notes, and snippets.

@elarib
Last active April 10, 2019 12:14
Show Gist options
  • Save elarib/b20a0f19283b68f7c4f924bf20fe7519 to your computer and use it in GitHub Desktop.
Save elarib/b20a0f19283b68f7c4f924bf20fe7519 to your computer and use it in GitHub Desktop.
Docker image containing latest Ansible
docker run  --rm -it \
        -v ~/.ssh:/root/.ssh \
        -v ABSOLUTE_PATH_TO_YOUR_PROJECT:/root/project \
        IMAGE_ID \
        ansible-playbook --version
FROM python:latest
RUN pip install ansible
WORKDIR "/root/project"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment