# Use a yaml/json/xml file to drive ansible?

**URL:** <https://forum.ansible.com/t/use-a-yaml-json-xml-file-to-drive-ansible/22044>\
**Category:** Ansible Project\
**Created:** [July 19, 2016, 2:57am UTC](https://forum.ansible.com/t/use-a-yaml-json-xml-file-to-drive-ansible/22044 "2016-07-19T02:57:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![K\_Dawg](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@K\_Dawg](https://forum.ansible.com/u/K_Dawg)\
**Post date:** [July 19, 2016, 2:57am UTC](https://forum.ansible.com/t/use-a-yaml-json-xml-file-to-drive-ansible/22044/1 "2016-07-19T02:57:49Z")

</div>

Is there a way to use a yaml/json/xml or other similar config file to drive ansible playbooks?

---

<div class="post-metadata">

**Author:** ![K\_Dawg](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@K\_Dawg](https://forum.ansible.com/u/K_Dawg)\
**Post date:** [July 20, 2016, 6:11pm UTC](https://forum.ansible.com/t/use-a-yaml-json-xml-file-to-drive-ansible/22044/2 "2016-07-20T18:11:44Z")

</div>

That is, sucking a DOM like object and walking it (not knowing exactly what to look for… i.e., not simply an XPATH type parsing).
