我已经下载了docker role,当我运行角色时,我得到了以下错误:
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模块替换include_task模块时,一切都正常工作。
导致此问题的原因是什么?
发布于 2019-01-03 17:19:08
如果您使用的是低于2.4的Ansible版本,则可以预期,因为在Ansible 2.4 https://docs.ansible.com/ansible/2.4/include_tasks_module.html中引入了include_task
https://stackoverflow.com/questions/54018580
复制相似问题