$ ansible-playbook destroy-dcos.yml --check
The error appears to have been in '[...]/destroy-dcos.yml': line 5, column 1, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Ensure DC/OS is uninstalled
^ here
exception type: <class 'yaml.parser.ParserError'>
exception: while parsing a block mapping
in "<unicode string>", line 3, column 1:
hosts: masters, agents
^
expected <block end>, but found '-'
in "<unicode string>", line 5, column 1:
- name: Ensure DC/OS is uninstalled
^
'destroy-dcos.yml' playbook has syntax errors: