Ansible in a docker on Alpine Linux including Nova and Boto/AWS/EC2
50K+
Dockerfile for ansible in a docker on Alpine Linux
Simple run :
docker run -it --rm=true generik/ansible ansible --help
Here I'm runing a playbook from my current working directory inside docker container:
docker run -it -v $SSH_AUTH_SOCK:/tmp/ssh.sck -e SSH_AUTH_SOCK=/tmp/ssh.sck -v `pwd`:/ansible --rm=true generik/ansible ansible-playbook myplaybook.yml
I like to forward my SSH agent inside, and mount the current working dir inside. You can also pass AWS access keys ...
Content type
Image
Digest
sha256:cd541489f…
Size
261.9 MB
Last updated
about 7 years ago
docker pull generik/ansible