Integrate ansible in CI/CD tools

Hi guys,

  • I’m trying to integrate an ansible playbook with my CI/CD tool (GOCD https://www.gocd.org/). It happens I have to pass a complex data structure (a hash with lists of hashes) to it and don’t know how to do it. As almost all information in this hash are secrets and login stuff, I’m trying to get the information from a hashicorp’s vault. Do someone have a tutorial on how to integrate ansible with vault and pass several informations without having to pass it via extra-vars in the command line?

Best regards,

This would be one way
http://docs.ansible.com/ansible/devel/plugins/lookup/hashi_vault.html

You can also pass a file to -e @filename.yml (or .json), you can use
vars_files or include_vars.

There are also 'vars plugins', you can create one that does exactly
what you want.