-
Bug
-
Resolution: Done
-
Minor
-
DO417 - RHAAP2.4-en-2-20240821
-
None
-
False
-
-
False
-
-
-
en-US (English)
Please fill in the following information:
URL: | https://rol.redhat.com/rol/app/courses/do417-2.4/pages/ch06s06 |
Reporter RHNID: | wasim-rhls |
Section Title: | Guided Exercise: Handling Task Failure |
Issue description
Expression of dict is not consistent
3.2
- name: Home page index is set
ansible.windows.win_uri:
url: http://win1.example.com
return_content: true
register: index
failed_when: index['content'] != "Ansible is great"
3.3
failed_when: index.content != "Ansible is great"
since they are pointing same playbook and same task, it should be consistent index.content or index['content']
Steps to reproduce:
Workaround:
Expected result: