0

我已经下载了docker 角色,当我运行该角色时,我收到以下错误:

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

The offending line appears to be:

---
- include_tasks: setup-RedHat.yml
  ^ here

当我用模块替换模块include_task模块时,include一切都按预期工作。

是什么导致了这个问题?

4

1 回答 1

1

如果您使用的是低于 2.4 的 Ansible 版本,那么可以预期它include_task是在 Ansible 2.4 https://docs.ansible.com/ansible/2.4/include_tasks_module.html中引入的

于 2019-01-03T09:19:07.673 回答