But related, and where this started for me, was running into this via a 
conditional include:

main.yml
- { include: service_def.yml, when: consul_services is defined }

service_def.yml
- name: Create service definitions
  template: > ...
  with_dict: consul_services

I did not expect service_def.yml to even be loaded in this case, but it 
clearly does. What exactly is happening with task includes with a 'when: 
false'? Does each task in the include get a hidden 'when: false' added to 
it? That would explain the behavior, but its definately not the behavior of 
least surprise to me.

-- 
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/c2780164-5189-445c-ac37-9ed39de00060%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to