Thanks alot dude. It did work ^^
i have recently got it working using lookup('file', '/etc/foo.txt') |
from_json).get('fw2').get('ipv4').get('rtr').get('ip') # haha though
it didn't look quit pretty
i noticed if i am using an attribute with a minus sign i.e "fw2-m" the dot
notation wouldn't work.
Just curious how could one overcome this issue?
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/939d1cc5-60d4-42b3-ba12-91894e574ffd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.