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 |
docker run -it --rm akit042/ansible-alpine:latest \
-v ${PWD}:/ansible ansible-playbook -i inventory playbook.yml
docker run -it --rm akit042/ansible-alpine:latest \
-v ${PWD}:/ansible ansible-galaxy init role-name
docker run -it --rm akit042/ansible-alpine:latest \
-v ${PWD}:/ansible ansible-playbook tests/playbook.yml --syntax-check