No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfiles
docs
.gitignore
.travis.yml
README.md
ansible-role
ansible-run
ansible-test
ansible-vault-run
mkdocs.yml
setup.py

README.md

Ansible Runner

A wrapper that runs ansible in a docker container to eliminate python dependency hell, bundles the dependencies needed for the following modules:

  • aws
  • azure
  • vmware
  • bigip
  • panos
  • win

ansible-run

pip install ansible-run
ansible-run
# drop into a shell with ansible and friends pre-installed

Environment Variables:

  • AWS_* environment variables

Volumes:

  • /ssh (for use with whilp/ssh-agent)
  • /var/run/docker.sock (so that docker can talk to itself)
  • ~/.aws
  • ~/.ansible
  • /work
  • $PWD

ansible-role

ansible-role moshloop.java # cross-platform install of java

ansible-test

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

Once the playbook is run any InSpec (.rb) or bats (.bats) tests found with the same name (e.g. playbook.rb) will be executed.

See it in action here

ansible-vault-run

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"