1.9.4
默认值。
Fedora 23 Linux 4.4.6-300.fc23.x86_64
Ansible Galaxy不会安装我的sardpost.kibana4角色,而是返回错误:
[root@dell-laptop sardpost]# ansible-galaxy install sardpost.kibana4
- downloading role 'kibana4', owned by sardpost
- downloading role from https://github.com/sardpost/sardpost.kibana4/archive/v0.1.0.tar.gz
- error: this role does not appear to have a valid meta/main.yml file.
- sardpost.kibana4 was NOT installed successfully.
- you can use --ignore-errors to skip failed roles.
meta / main.yml看起来不错。 我仔细检查了很多次。 删除它,将其替换为新的。 该角色可以很好地导入到Galaxy中,没有错误,但是每次我尝试安装它时,它都会在meta / main.yml上始终出现相同的错误,表明它无效。
尝试从Ansible Galaxy安装sardpost.kibana4角色
ansible-galaxy install sardpost.kibana4
sardpost.kibana4角色已正确下载和安装。
- downloading role 'kibana4', owned by sardpost
- downloading role from https://github.com/sardpost/sardpost.kibana4/archive/v0.1.0.tar.gz
- error: this role does not appear to have a valid meta/main.yml file.
- sardpost.kibana4 was NOT installed successfully.
- you can use --ignore-errors to skip failed roles.
问题是在版本v0.1.0存档中发现了坏Yaml。 如果打开档案并查看Yaml,您会注意到两件事:
dependencies: []
解决依赖项问题后,便可以通过python yaml.safe_load()导入meta / main.yml文件。
嗨,chouseknecht。 谢谢,我修复了yaml文件并也更新了存档。 现在可以了。 谢谢你。
最有用的评论
问题是在版本v0.1.0存档中发现了坏Yaml。 如果打开档案并查看Yaml,您会注意到两件事:
dependencies: []
解决依赖项问题后,便可以通过python yaml.safe_load()导入meta / main.yml文件。