Hello,
Im trying to use default filter:
hosts: ["{{ groups['examples'][0] | default('localhost') }}":5045]
But it return error:
FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict
object' has no attribute 'examples'"}.
I read something about default can use only 1 level deep, but I cannot
write more levels properly.
--
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/ff9ef7e6-316d-455d-8fcc-945a033d5e4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.