first no moustaches in var, it just wants a variable name

- debug: var=sites[env].restricted_areas

you are putting several variables that can be undefined in your when
statement so to be safe you should check each step:

when:  env is defined and env in sites and 'restricted_areas' in sites[env]

Now you can split them up and check each step to make sure what you
expect to be defined is there


-- 
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/CAJ5XC8mi2tOZB-D-S%2BpDFZAFkbiz9hGYq3rt7U5_FPCmrT2SWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to