| Docker Tag | Git Release | Ansible Version | OS Version | Support |
|---|---|---|---|---|
| 1.2.0 | Main Branch | 2.13.3 | Alpine 3.15 | - |
| 1.0.3 | Main Branch | 2.12.1 | Alpine 3.15 | - |
docker run -t -i --rm asapdotid/ansible-alpine:${version} bash
docker system prune --all --force --volumes
| Variable | Default Value | Usage |
|---|---|---|
| PIP_REQUIREMENTS | requirements.txt | install python library requirements |
| ANSIBLE_REQUIREMENTS | requirements.yml | install ansible galaxy roles requirements |
| DEPLOY_KEY | pass an SSH private key to use in container | |
| DEPLOY_HOST | pass an SSH known hosts use in container |
To enable mitogen, add this configuration into defaults in defaults.cfg file
action_plugins = ~/.ansible/plugins/action:/usr/share/ansible/plugins/action
strategy_plugins = /opt/mitogen/ansible_mitogen/plugins/strategy
strategy = mitogen_linear
docker run -it --rm \
-v ${PWD}:/ansible \
asapdotid/ansible-alpine:latest \
ansible-playbook -i inventory playbook.yml
docker run -it --rm \
-v ${PWD}:/ansible \
asapdotid/ansible-alpine:latest \
ansible-galaxy init role-name
docker run -it --rm asapdotid/ansible-alpine:latest \
-v ${PWD}:/ansible ansible-playbook tests/playbook.yml --syntax-check
docker run -it --rm \
-v $(readlink -f $SSH_AUTH_SOCK):/ssh-agent \
-v ${PWD}:/ansible \
-e SSH_AUTH_SOCK=/ssh-agent \
asapdotid/ansible-alpine:latest \
sh
base64 decode -dLogLevel ERRORansible.posix (https://galaxy.ansible.com/ansible/posix)community.docker (https://galaxy.ansible.com/community/docker)Do not hesitate if there are suggestions and criticisms 😃 :) @asapdotid
Content type
Image
Digest
sha256:4f6af90f7…
Size
97.5 MB
Last updated
about 4 years ago
docker pull asapdotid/ansible-alpine