ansible in Fedora 23+ (python3)

Lars Kellogg-Stedman lars at redhat.com
Thu Oct 15 19:30:38 UTC 2015


On Thu, Oct 15, 2015 at 11:54:29AM -0400, Bill Nottingham wrote:
> same python version as the Ansible version you're using.  If Ansible were to
> use python3, all module bindings would need to be python 3, and *all the
> managed machines would need to have python3 installed*.

Isn't it entirely possible -- through liberal use of 'six' and 'from
future...' -- to write code that will operate correctly with both
Python 2 and Python 3?  I thought that, e.g., OpenStack was pursuing
exactly that strategy.

Sure, you still need your target Python 3 environment to have the
appropriate supporting modules, but that seems like a different issue.
Environments runnning Python 2 should continue to Just Work.

-- 
Lars Kellogg-Stedman <lars at redhat.com> | larsks @ {freenode,twitter,github}
Cloud Engineering / OpenStack          | http://blog.oddbit.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20151015/dacff597/attachment.sig>


More information about the devel mailing list