I'm currently watching Demo: Error Handling – Block Groups from the Red Hat Certified Specialist in Ansible Automation (EX407), and I have the following playbook:
- hosts: l1
- name: get file
- debug msg="The file doesn't exist!"
- debug: msg="Play done!"
When I run it, I get the following error:
I'm not sure what I'm doing wrong, as this is exactly the syntax I'm seeing in the video.
ERROR! 'url' is not a valid attribute for a Task
The error appears to have been in '/Users/vinci/NextCloud/redhatansible/block_error.yml': line 7, column 11, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
This error can be suppressed as a warning using the "invalid_task_attribute_failed" configuration