0

Ansible 版本:2.9

玩书

---
- { include_tasks: test.yml }

错误

The error appears to have been in '/path/to/main.yml': line 34, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- { include_tasks: test.yml}
  ^ here
'}}

与这个战斗了几天!请解救。

4

1 回答 1

0

你发布的不是剧本。您需要列出主机和任务:

---
- hosts: all
  tasks:
  - include_tasks: test.yml
于 2020-03-15T17:58:47.513 回答