So in my code I have a task:
- name: cool task
shell: 'touch iamnotcool.txt'
when: me.cool is not defined
and my vars looks like:
---
me:
stumped: yes
So when I run the task it comes back with the following error:
{"failed": true, "msg": "The conditional check 'me.cool' failed. The error was: error while evaluating conditional (me.cool): 'dict object' has no attribute 'cool'."}
when: is_installed.rc is defined and is_installed.rc == 0This does not:when: is_installed.rc is defined\nwhen is_installed.rc == 0– Aiyion.Prime Jun 13 '19 at 14:23when: source_subdirs.matched is not defined or source_subdirs.matched == 0– Stuart Cardall Apr 18 '22 at 13:31