Is there an alternative to Ansible on Python3
Asked Answered
D

2

6

I changed the Python 2 to Python 3. I felt the benefits of 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?

Dint answered 20/8, 2015 at 8:23 Comment(1)
You can install Python 2 and 3 in parallel and keep running Ansible on Python 2...!?Mesnalty
M
4

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. I already fixed two that I encountered myself.

Menderes answered 6/1, 2017 at 17:56 Comment(0)
R
3

Edit: as of Ansible 2.2 this answer is no longer accurate.

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.

Rod answered 23/8, 2015 at 3:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.