# Integrate ansible in CI/CD tools

**URL:** <https://forum.ansible.com/t/integrate-ansible-in-ci-cd-tools/26272>\
**Category:** Ansible Project\
**Created:** [December 13, 2017, 4:38am UTC](https://forum.ansible.com/t/integrate-ansible-in-ci-cd-tools/26272 "2017-12-13T04:38:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Helio\_Campos\_Mello\_1](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Helio\_Campos\_Mello\_1](https://forum.ansible.com/u/Helio_Campos_Mello_1)\
**Post date:** [December 13, 2017, 4:38am UTC](https://forum.ansible.com/t/integrate-ansible-in-ci-cd-tools/26272/1 "2017-12-13T04:38:43Z")

</div>

Hi guys,

- I’m trying to integrate an ansible playbook with my CI/CD tool (GOCD [https://www.gocd.org/](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,

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [December 14, 2017, 10:33pm UTC](https://forum.ansible.com/t/integrate-ansible-in-ci-cd-tools/26272/2 "2017-12-14T22:33:58Z")

</div>

This would be one way  
[http://docs.ansible.com/ansible/devel/plugins/lookup/hashi\_vault.html](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.
