Skip to content

Ansible bootstrap scripts that improve work with multiple Ansible projects.

Notifications You must be signed in to change notification settings

milosz/ansible-bootstrap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ansible bootstrap scripts that improve work with multiple Ansible projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%