0
Ansible playbook抛出语法错误,但一切看起来正确。 什么是角色的问题?ansible playbook语法错误
错误:
The error appears to have been in '/home/Desktop/playbooks/xx.yml': line 6, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
roles:
- role: chronos_task
^here
CODE
---
- hosts: localhost
connection: local
gather_facts: no
roles:
- role: chronos_task
no_log: true
chronos_url: 'http://{{ chronos_host }}:{{ chronos_port }}'
chronos_tasks:
- type: iso8601
备案。几个YAML验证器确定这个块是有效的YAML。 – castis
是的,我甚至尝试在aws环境中执行,我仍然不知道语法错误可能在哪里 – Swat