Skip to content

Wrapper script to manage multiple ansible environments with different vault passwords and config

Notifications You must be signed in to change notification settings

ballad89/ansible-multi-environment-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

ansible-multi-environment-wrapper

Manage logically similar, but separate ansible inventories using this bash wrapper.

This is a tool for humans.

What

  • Multiple inventories
  • Separate vault passwords
  • Identical playbooks
  • One current/active inventory (so eg ansible all -m ping works to different machines depending on which inventory is active)

How

  • Clone this repo somewhere locally
  • Create ~/bin
  • Add ~/bin to your shell $PATH
  • ln -s /path/to/batman.sh $HOME/bin/batman
  • chmod +x $HOME/bin/batman
  • batman help
  • batman add local $HOME/Sources/dev-time-local-vagrant-machine-inventory
  • . batman load local (notice how the PS1 prompt changes to indicate which inventory is active)
  • ansible all -m setup etc

About

Wrapper script to manage multiple ansible environments with different vault passwords and config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages