Ok i found an answer.
 {{ lookup('template', 'cluster_policies.j2') }}
this works fine

On Thursday, October 13, 2016 at 6:33:41 PM UTC+5:30, ankur...@gmail.com 
> Hi,
> I am loading a file using lookup eg "{{ lookup('file', 
> 'cluster_policies.json') | from_json }}"
> Now my file cluster_policies.json contains some ansible variables that I 
> need to substitute. Any idea how can it be done?
> Thanks

You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to