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

13 views
Skip to first unread message

ja...@blend.com

unread,
Jul 5, 2017, 8:35:59 PM7/5/17
to Ansible Project
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.

Brian Coca

unread,
Jul 5, 2017, 9:34:09 PM7/5/17
to Ansible Project
Just use pyyaml to import the file?



--
----------
Brian Coca

ja...@blend.com

unread,
Jul 5, 2017, 9:53:10 PM7/5/17
to Ansible Project
Need it to work with variables / filters / boolean logic, etc. It's not a static file.
Reply all
Reply to author
Forward
0 new messages