I have the following YAML file that makes a reference to a another yaml file whose errors I want to ignore.
---
- hosts: personal
gather_facts: no
tasks:
- name: command1
command: "nodanger command1"
register: command1
ignore_errors: yes
- debug: var=command1.stdout_lines
-include: additional.yml
ignore_errors: yes
When I run the above playbook I get the following error
ERROR: Syntax Error while loading YAML script, command.yml
Note: The error may actually appear before this position: line 11, column 1
-include: additional.yml
How do I go about ignoring the errors for an included yml file?