Comment yml file to conf using jinja2 templating

7 views
Skip to first unread message

Saranya N

unread,
Oct 1, 2018, 1:44:01 PM10/1/18
to Ansible Project
I have a yml as a list of dictionary like sample below :

Section1 :
- { k1 : V1 , K2 : V2 }

Section2 :
- { k1 : V1 , K2 : V2 , K3 : V3 }

In my yml file the actual section names keeps varying. They're of very different names.


Is there a way to loop through these sections using j2 templating ?

Kindly suggest.

Reply all
Reply to author
Forward
0 new messages