rob
2015-07-12 20:19:19 UTC
Hi
I would like to check if nested dict value is defined, eg.:
when: ansible_local.resolver.resolver_override is not defined
But if ansible_local (fact.d) is not exists I get error message:
error while evaluating conditional:
ansible_local.resolver.resolver_override is not defined
Is there any way to create condition if nested dict value is defined
regardless of existence the whole dict hierarchy?
I would like to check if nested dict value is defined, eg.:
when: ansible_local.resolver.resolver_override is not defined
But if ansible_local (fact.d) is not exists I get error message:
error while evaluating conditional:
ansible_local.resolver.resolver_override is not defined
Is there any way to create condition if nested dict value is defined
regardless of existence the whole dict hierarchy?
--
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 ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9fc9ff31-8544-457e-bcfd-21de81a2d593%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9fc9ff31-8544-457e-bcfd-21de81a2d593%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.