-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无法使用ansible的ali_instance_facts获取ecs信息 #185
Comments
我这执行并没有报错,麻烦使用-vvv查看一下具体报错信息 |
|
你使用的是最新版本的ansible-provider=1.11.0, 仅支持python3的,你的环境的python2 |
什么版本支持python2? |
1.10.0支持python2, 后续新功能都是基于python3开发的 |
用python3还是有问题
|
解决方案: 卸载python3中的ansible, ansible-alicloud, footmark, 然后pip3 install ansible_alicloud --no-cache-dir, 使用ansible-playbook命令时指定python3 Interpreter. |
aliyun-python-sdk-core 这个sdk只支持python2
|
卸载python3中的ansible, ansible-alicloud, footmark, 然后pip3 install ansible_alicloud --no-cache-dir |
还是不行
|
python2与3共存,命令容易混淆,建一个3的虚拟环境,按上述重新安装包,在虚拟环境中执行在试一下。 |
请问这个问题已经解决了吗? |
没有解决 |
pip install virtualenv 安装虚拟环境 |
为啥不支持python2呢,ansible都没放弃。。。 |
如果必须使用python2,这个要如何解决 |
I meet the same problem. |
playbook的yml文件如下:
报错信息如下:
The text was updated successfully, but these errors were encountered: