#232 136 - Ansible Python3 default
Merged 5 years ago by pbokoc. Opened 5 years ago by pbokoc.
fedora-docs/ pbokoc/release-notes f29  into  f29

@@ -16,6 +16,10 @@ 

  See link:++https://docs.python.org/3/whatsnew/3.7.html++[What's new in Python 3.7] and link:++https://www.python.org/dev/peps/pep-0537/#features-for-3-7++[Features for 3.7] for more information.

  If you have your own Python apps, see link:++https://docs.python.org/3/whatsnew/3.7.html#porting-to-python-3-7++[Porting to Python 3.7] for information about compatibility-breaking changes and how to fix your applications.

  

+ == Ansible now uses Python3 by default

+ 

+ The `ansible` package in Fedora is switching to use *Python 3* by default, instead of *Python 2*. See xref:fedora:sysadmin-guide:sysadmin/Automation.adoc[Automation] for details.

+ 

  == No more automagic Python bytecompilation

  

  The current way of automatic *Python* byte-compiling of files outside Python-specific directories is too magical and error-prone.

@@ -3,3 +3,17 @@ 

  

  [[sect-automation]]

  = Automation

+ 

+ == Ansible now uses Python3 by default

+ 

+ The `ansible` package in Fedora is switching to use *Python 3* by default, instead of *Python 2*.

+ 

+ You may need to adjust what python is used on the target machines you talk to from your Fedora control host.

+ You can do this by following the instructions in link:++http://docs.ansible.com/ansible/latest/python_3_support.html++[Ansible docs].

+ 

+ This change allows you to manage target machines that don't normally ship with `python2` by default easier as well as moving `ansible` in Fedora to the Python version used by upstream to develop new features and improvements.

+ As `python2` subpackages in Fedora are retired, more and more development will move to the `python3` versions.

+ This change aligns the Fedora `ansible` package with that reality.

+ 

+ All new modules and all the core modules shipped with Fedora's `ansible` package have been tested with `python3`.

+ Locally created modules or plugins, or 3rd party community plugins, may need some adjustment to work smoothly with `python3`.