On 08.02.17 11:29 adrien nayrat wrote: > instances: > - name: ref > mgservices: > name: test1
> pgservice : {{ instance.mgservices.name |
> "AnsibleUndefinedVariable: 'dict object' has no attribute 'mgservices'"}
Just a guess:
Your problem is not the default, but rather how you try to address
your dict.
Try this:
pgservice: {{ instance["msgservices"]["name"] }}
Johannes
--
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/e11a71d7-0e2b-2d0e-12ee-23a3f13746b4%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
