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.
--
--
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