I am running a playbook that is included as part of another playbook but I keep getting an error, can I get some help debugging it. Here is the job:
---
- name: Clean yum
action: shell yum clean all
- name: Clean cache
yum: name=* update_cache=yes state=latest
- name: Apply All OS Patches
yum: name=* state=latest
notify:
- reboot
- reboot_complete
handlers:
- name: reboot
command: reboot "Ansible triggered reboot"
async: 0
poll: 0
ignore_errors: true
- name: reboot_complete
local_action: wait_for host={{ inventory_hostname }}
Here is the error that I keep seeing
fatal: [10.193.1.129]: FAILED! => {"failed": true, "reason": "Syntax Error while loading YAML.\n\n\nThe error appears to have been in '/var/lib/awx/projects/it_security/baseline/tasks/update_redhat.yml': line 14, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n handlers:\n ^ here\n"}
It shows the error in the line handlers and I've tried to move it around some to make sure it's not a spacing issue but I keep getting the same issue.