Skip to content
This repository was archived by the owner on Feb 19, 2023. It is now read-only.

Docker Image for Ansible build from source code using the latest CentOS

Notifications You must be signed in to change notification settings

ruzickap/docker-ansible_latest

Repository files navigation

About this Repo

Docker pulls Docker Build

This repository provides Dockerfile which provides builds Ansible from source code + few additional libraries.

Usage

You can run it like this:

ANSIBLE_VAULT_PASSWORD_FILE=${ANSIBLE_VAULT_PASSWORD_FILE:-"~/.ansible/vault.password"}

DOCKER_PARAMETERS="
  run --interactive --tty --rm \
  --env SSH_AUTH_SOCK=/ssh-agent \
  --env ANSIBLE_VAULT_PASSWORD_FILE=/home/ansible/.vault_pass.txt
  --volume ${ANSIBLE_VAULT_PASSWORD_FILE}:/home/ansible/.vault_pass.txt:ro \
  --volume $SSH_AUTH_SOCK:/ssh-agent \
  --volume $HOME/.aws:/home/ansible/.aws:ro \
  --volume $HOME/.ansible:/home/ansible/.ansible:ro \
  --volume $HOME/.ansible/tmp:/home/ansible/.ansible/tmp \
  --volume $HOME/.ansible/cp:/home/ansible/.ansible/cp \
  --volume $PWD:/home/ansible/ansible_project:ro \
  --name=ansible_latest-$$ --label=ansible_latest peru/ansible_latest \
"

sudo docker $DOCKER_PARAMETERS ansible-playbook site.yml

Or something easier:

docker run --interactive --rm --volume $PWD:/home/ansible/ansible_project:ro peru/ansible_latest ansible-playbook --version

License

BSD

Author Information

This repo was created in 2017 by petr.ruzicka@gmail.com

About

Docker Image for Ansible build from source code using the latest CentOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published