Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.23 KB

README.md

File metadata and controls

26 lines (19 loc) · 1.23 KB

Ansible bootstrap

If you have multiple Ansible projects for different applications you can use this repo as a starting base. Using python virtual environments you can keep separate dependencies for each of your projects, no matter what packages you have installed on your system.

asciicast

Install requirements

$ pip3 install -U pipenv

How to use?

In the Pipenv file, you should update the list of dependencies that you need in your project. When you are ready just type:

$ source init.sh
(ansible)$ ansible --version

To exit ansible virtual env type exit or press Ctl+D

All vault files should be stored in files named vault_.*, ex. vault_jenkins.yml.

Your vault password should be stored in .ansible_vault_pass file.

Additional features

  • Thanks to the hooks in git, you don't have to worry about mistakenly committing decrypted vault files. More infor how to use hooks you can find here. You can define you own hooks adding them to .githooks
  • ansible-lint is used to check if the syntax of committed files is compatible with the standards