【发布时间】:2016-01-12 20:00:17
【问题描述】:
我有以下 YAML 文件,它引用了另一个我想忽略其错误的 yaml 文件。
---
- 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
当我运行上面的剧本时,我收到以下错误
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
如何忽略包含的 yml 文件的错误?
【问题讨论】: