Więc w moim kodzie mam zadanie
- name: cool task
shell: 'touch iamnotcool.txt'
when: me.cool is not defined
i moje vars wygląda
---
me:
stumped: yes
Kiedy uruchamiam zadanie, wraca ono z następującym błędem
{"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 == 0
To nie:when: is_installed.rc is defined
\n
when is_installed.rc == 0