Thanks Brian,
Its working.
as I am using Ansible version 2.2 so I used " instead of ' -
{{hostvars["host4"]["x"]["stdout"]}}
Thanks once again :)
Br//Sudhanshu
On Saturday, April 22, 2017 at 1:32:48 AM UTC+5:30, Brian Coca wrote:
>
> x only exists for host4, in the context of host3 it does not, you need to
> do:
>
> {{hostvars['host4']['x']['stdout']}}
>
>
> ----------
> Brian Coca
>
--
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/865b392d-b65e-48cb-9760-ba41a1e15b49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.