A wrapper that runs ansible in a docker container to eliminate python dependency hell, bundles the dependencies needed for the following modules:
pip install ansible-run ansible-run # drop into a shell with ansible and friends pre-installed
/ssh(for use with whilp/ssh-agent)
/var/run/docker.sock(so that docker can talk to itself)
ansible-role moshloop.java # cross-platform install of java
ansible-test will test a playbook using a docker container:
ansible-test playbook.yml # defaults to centos7 image=ubuntu1804 ansible-test playbook.yml
The playbook will be tested for idempotency by running it a 2nd time and ensuring nothing is marked as changed, disable it with:
idempotency=false ansible-test playbook.yml
See it in action here
ansible-vault-run will decrypt a vault and run a script with the variables exported as environment variables
echo "Decrypts an ansible-vault and runs script with the contents as environment variables"
ansible-vault-run vault "echo \$password"