- name: task
debug: msg="I will fail"
when: inventory_hostname in groups['doesnotexist']
fatal: [host] => error while evaluating conditional: inventory_hostname in groups['doesnotexist']
I'm assuming this is not expected behavior? Running Ansible 1.9.2, if it's not, I'll be happy to file a bug.
Regards,
Nico