# Anyway to render jinja templates like all.yml or group vars using ansible api?

**URL:** <https://forum.ansible.com/t/anyway-to-render-jinja-templates-like-all-yml-or-group-vars-using-ansible-api/24906>\
**Category:** Ansible Project\
**Created:** [July 6, 2017, 12:35am UTC](https://forum.ansible.com/t/anyway-to-render-jinja-templates-like-all-yml-or-group-vars-using-ansible-api/24906 "2017-07-06T00:35:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![james3](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@james3](https://forum.ansible.com/u/james3)\
**Post date:** [July 6, 2017, 12:35am UTC](https://forum.ansible.com/t/anyway-to-render-jinja-templates-like-all-yml-or-group-vars-using-ansible-api/24906/1 "2017-07-06T00:35:59Z")

</div>

Would like to access the all.yml, group\_vars variables outside the context of a playbook?

Ideally through the api  
Less ideal output a rendered all.yml, then i’ll read it afterwards.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [July 6, 2017, 1:33am UTC](https://forum.ansible.com/t/anyway-to-render-jinja-templates-like-all-yml-or-group-vars-using-ansible-api/24906/2 "2017-07-06T01:33:56Z")

</div>

Just use pyyaml to import the file?

---

<div class="post-metadata">

**Author:** ![james3](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@james3](https://forum.ansible.com/u/james3)\
**Post date:** [July 6, 2017, 1:53am UTC](https://forum.ansible.com/t/anyway-to-render-jinja-templates-like-all-yml-or-group-vars-using-ansible-api/24906/3 "2017-07-06T01:53:10Z")

</div>

Need it to work with variables / filters / boolean logic, etc. It’s not a static file.
