简体   繁体   English

在Python3上是否有Ansible的替代品

[英]Is there an alternative to Ansible on Python3

I changed the Python 2 to Python 3. I felt the benefits of Asyncio. 我将Python 2更改为Python 3.我感受到了Asyncio的好处。

Earlier in my project I used Ansible, but it is not supported with Python 3. Can you recommend to me an alternative to Ansible for Python 3? 在我的项目早期,我使用了Ansible,但Python 3不支持它。你能推荐给我一个替代Ansible for Python 3吗?

As of 2.2, Ansible works with Python 3. Yep, you may encounter some bugs but any patch related to py3 will be quickly reviewed and merged by the team. 从2.2开始,Ansible可以使用Python 3.是的,您可能会遇到一些错误,但任何与py3相关的补丁都会被团队快速审核和合并。 I already fixed two that I encountered myself. 我已经修好了自己遇到的两个。

Edit: as of Ansible 2.2 this answer is no longer accurate. 编辑:从Ansible 2.2开始,这个答案不再准确。

The best answer here is to have both versions of Python installed, possibly running Python 2 and Ansible in a virtualenv. 这里最好的答案是安装两个版本的Python,可能在virtualenv中运行Python 2和Ansible。

It's possible that Ansible will be refactored for Python 3 but it's unlikely for now, and there is no Alternative in Python 3. If you don't want to use Ansible on Python2, you'll need to switch to another tool like Saltstack, Chef, or Puppet. Ansible可能会针对Python 3进行重构,但现在不太可能,而且Python 3中没有替代品。如果你不想在Python2上使用Ansible,你需要切换到另一个工具,比如Saltstack,Chef或者Puppet。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM