mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Make Python 3 instructions a bit more clear.
This commit is contained in:
parent
ed1d9f1235
commit
daf7419f3a
1 changed files with 18 additions and 9 deletions
|
@ -39,7 +39,17 @@ also need:
|
||||||
then allows you to use everything else. (That's jumping ahead
|
then allows you to use everything else. (That's jumping ahead
|
||||||
though.)
|
though.)
|
||||||
|
|
||||||
Ansible does not run with Python 3.
|
.. note::
|
||||||
|
|
||||||
|
Python 3 is a slightly different language than Python 2 and most python programs (including
|
||||||
|
Ansible) are not
|
||||||
|
switching over yet. However, some Linux distributions (Gentoo, Arch) may not have a
|
||||||
|
Python 2.X interpreter installed by default. On those systems, you should install one, and set
|
||||||
|
the 'ansible_python_interpreter' variable in inventory to point at your 2.X python. Distributions
|
||||||
|
like Red Hat Enterprise Linux, CentOS, Fedora, and Ubuntu all have a 2.X interpreter installed
|
||||||
|
by default and this does not apply to those distributions. This is also true of nearly all
|
||||||
|
Unix systems. If you need to bootstrap these remote systems by installing Python 2.X,
|
||||||
|
using the 'raw' module will be able to do it remotely.
|
||||||
|
|
||||||
Getting Ansible
|
Getting Ansible
|
||||||
```````````````
|
```````````````
|
||||||
|
@ -172,8 +182,8 @@ Please refer to the documentation at <http://www.macports.org> for
|
||||||
further information on using Portfiles with MacPorts.
|
further information on using Portfiles with MacPorts.
|
||||||
|
|
||||||
|
|
||||||
Debian, Gentoo, Arch, Others
|
Ubuntu and Debian
|
||||||
++++++++++++++++++++++++++++
|
+++++++++++++++++
|
||||||
|
|
||||||
Ubuntu builds are available `in a PPA here <https://launchpad.net/~rquillo/+archive/ansible>`_
|
Ubuntu builds are available `in a PPA here <https://launchpad.net/~rquillo/+archive/ansible>`_
|
||||||
|
|
||||||
|
@ -183,6 +193,9 @@ Debian/Ubuntu package recipes can also be built from the source checkout, run:
|
||||||
|
|
||||||
$ make debian
|
$ make debian
|
||||||
|
|
||||||
|
Gentoo, Arch, Others
|
||||||
|
++++++++++++++++++++
|
||||||
|
|
||||||
Gentoo eBuilds are available `on github here <https://github.com/uu/ubuilds>`_
|
Gentoo eBuilds are available `on github here <https://github.com/uu/ubuilds>`_
|
||||||
|
|
||||||
An Arch PKGBUILD is available on `AUR <https://aur.archlinux.org/packages.php?ID=58621>`_
|
An Arch PKGBUILD is available on `AUR <https://aur.archlinux.org/packages.php?ID=58621>`_
|
||||||
|
@ -192,12 +205,8 @@ If you have python3 installed on Arch, you probably want to symlink python to py
|
||||||
|
|
||||||
$ sudo ln -sf /usr/bin/python2 /usr/bin/python
|
$ sudo ln -sf /usr/bin/python2 /usr/bin/python
|
||||||
|
|
||||||
You can also use the ansible_python_interpreter variable for hosts that have python
|
You should also set a 'ansible_python_interpreter' inventory variable for hosts that have python
|
||||||
pointing to python3
|
pointing to python3, so the right python can be found on the managed nodes.
|
||||||
|
|
||||||
If you would like to package Ansible for Homebrew, BSD, or others,
|
|
||||||
please stop by the mailing list and say hi!
|
|
||||||
|
|
||||||
|
|
||||||
Tagged Releases
|
Tagged Releases
|
||||||
+++++++++++++++
|
+++++++++++++++
|
||||||
|
|
Loading…
Reference in a new issue