Update installation docs for RHEL based distributions. (#38056)

Upstream rpms are no longer in Extras but EPEL as well as releases.ansible.com.
Add instructions for adding Ansible Engine repo to RHEL.
pull/38349/head
Sam Doran 7 years ago committed by scottb
parent ea9ece8e72
commit 34dca85417

@ -112,4 +112,4 @@ epub:
htmlsingle: assertrst htmlsingle: assertrst
sphinx-build -j $(CPUS) -b html -d $(BUILDDIR)/doctrees ./rst $(BUILDDIR)/html rst/$(rst) sphinx-build -j $(CPUS) -b html -d $(BUILDDIR)/doctrees ./rst $(BUILDDIR)/html rst/$(rst)
@echo "Output is in $(BUILDDIR)/$(rst:.rst=.html)" @echo "Output is in $(BUILDDIR)/html/$(rst:.rst=.html)"

@ -28,7 +28,7 @@ import os
sys.path.insert(0, os.path.join('ansible', 'lib')) sys.path.insert(0, os.path.join('ansible', 'lib'))
sys.path.append(os.path.abspath('_themes')) sys.path.append(os.path.abspath('_themes'))
VERSION = '2.4' VERSION = '2.6'
AUTHOR = 'Ansible, Inc' AUTHOR = 'Ansible, Inc'

@ -88,7 +88,7 @@ default this uses sftp. If that's not available, you can switch to scp in
By default, Ansible uses Python 2 in order to maintain compatibility with older distributions By default, Ansible uses Python 2 in order to maintain compatibility with older distributions
such as RHEL 6. However, some Linux distributions (Gentoo, Arch) may not have a such as RHEL 6. 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 Python 2.X interpreter installed by default. On those systems, you should install one, and set
the 'ansible_python_interpreter' variable in inventory (see :ref:`inventory`) to point at your 2.X Python. Distributions the ``ansible_python_interpreter`` variable in inventory (see :ref:`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 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 by default and this does not apply to those distributions. This is also true of nearly all
Unix systems. Unix systems.
@ -120,23 +120,19 @@ On RHEL and CentOS:
$ sudo yum install ansible $ sudo yum install ansible
.. note:: We've changed how the Ansible community packages are distributed. RPMs for RHEL 7 are available from the `Ansible Engine repository <https://access.redhat.com/articles/3174981>`_.
For users of RHEL/CentOS/Scientific Linux version 7, the Ansible community RPM
package will transition from the EPEL repository to the Extras channel. There will be no
change for version 6 of RHEL/CentOS/Scientific Linux since Extras is not a part of version 6.
RPMs for RHEL7 are available from `the Extras channel <https://access.redhat.com/solutions/912213>`_. To enable the Ansible Engine repository, run the following command:
RPMs for RHEL6 are available from yum for `EPEL .. code-block:: bash
<http://fedoraproject.org/wiki/EPEL>`_ 6 and currently supported
Fedora distributions. $ sudo subsription-manager repos --enable rhel-7-server-ansible-2.6-rpms
Ansible will also have RPMs/YUM-repo available `here <https://releases.ansible.com/ansible/rpm>`_. RPMs for currently supported versions of RHEL, CentOS, and Fedora are available from `EPEL <http://fedoraproject.org/wiki/EPEL>`_ as well as `releases.ansible.com <https://releases.ansible.com/ansible/rpm>`_.
Ansible version 2.4 can manage earlier operating Ansible version 2.4 and later can manage earlier operating systems that contain Python 2.6 or higher.
systems that contain Python 2.6 or higher.
You can also build an RPM yourself. From the root of a checkout or tarball, use the ``make rpm`` command to build an RPM you can distribute and install. You can also build an RPM yourself. From the root of a checkout or tarball, use the ``make rpm`` command to build an RPM you can distribute and install.
.. code-block:: bash .. code-block:: bash

Loading…
Cancel
Save