Accessing Ansible magic variables in python

17 views
Skip to first unread message

Sayed Anisul

unread,
Aug 8, 2018, 6:12:30 AM8/8/18
to Ansible Project
Hello

How can I access Ansible magic variables like {{ playbook_dir }} in the python source code ? can someone please help with a code snippet?

Thank you

Kai Stian Olstad

unread,
Aug 8, 2018, 6:20:52 AM8/8/18
to ansible...@googlegroups.com
On 08.08.2018 12:12, Sayed Anisul wrote:
> How can I access Ansible magic variables like {{ playbook_dir }} in the
> python source code ? can someone please help with a code snippet?

I might have better luck asking this question in the Anisble developer
list.

--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages