在 Python3 上是否有 Ansible 的替代品

Is there an alternative to Ansible on Python3

我把Python 2改成了Python 3,感受了Asyncio的好处。

在我的项目早期,我使用了 Ansible,但 Python 不支持它 3. 你能给我推荐一个替代 Ansible 的 Python 3 吗?

编辑:从 Ansible 2.2 开始,这个答案不再准确。

The best answer here is to have both versions of Python installed, possibly running Python 2 and Ansible in a virtualenv.

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.

从 2.2 开始,Ansible 与 Python 一起工作 3. 是的,您可能会遇到一些错误,但与 py3 相关的任何补丁都会由团队快速审查和合并。我已经修复了两个我自己遇到的问题。