【发布时间】:2016-04-20 20:33:57
【问题描述】:
我无法运行
ansible-playbook openshift-ansible/playbooks/byo/config.yml
根据使用的 ansible 版本,我会遇到各种错误。在各种 1.9.x 版本上,错误是
ERROR: fail is not a legal parameter in an Ansible task or handler
在 2.0.0 上:
ERROR! 'vars_files' is not a valid attribute for a PlaybookInclude
The error appears to have been in '/home/ansible/openshift-ansible/playbooks/byo/openshift-cluster/config.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: ../../common/openshift-cluster/config.yml
^ here
我在 github 上看到了这个错误报告,据说 1.9 解决方案可以通过迁移到 2.0 来解决,并且提到的 2.0 错误通过 1.9 降级得到修复,但找不到它实际工作的设置并且会感谢一些提示,因为这似乎是应该轻松完成的步骤之一。
这是在带有 docker 版本的 RHEL 7 上:
[root@mtl-vm374 ansible]# docker --version
Docker version 1.8.2-el7.centos, build a01dc02/1.8.2
提前致谢!
【问题讨论】:
-
这听起来像是openshift-ansible 中的一个错误,您应该向上游报告。或者,如果您想自己修复它,我们需要查看手册。
-
您是否遵循了高级安装? OpenShift playbook 使用您的 ansible/host 文件。所以也许那里有问题?
-
我确实尝试过高级,但我不会声称我做对了。 Github 提到这是一个错误,涉及更改版本和 deploy_helper.py 的变通方法不起作用。我的 ansible/hosts 文件是:
[OSv3:children] masters nodes # Set variables common for all OSEv3 hosts [OSv3:vars] # SSH user, this user should allow ssh based auth without requiring a password ansible_ssh_user=root # If ansible_ssh_user is not root, ansible_sudo must be set to true #ansible_sudo=true deployment_type=origin # host group for masters [masters] jak-vm374 # host group for nodes [nodes] jak-vm374