diff options
author | Sandra McCann <samccann@redhat.com> | 2021-03-25 16:21:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-25 15:21:37 -0500 |
commit | 59c61bc88ab199e2d7230c41d3134a8332200b49 (patch) | |
tree | 18548787e75f6594fecce5e4e37664941aacc38c /docs/docsite/rst | |
parent | 2abb2d3f17193a59d71c0a03ae1374a709f2db39 (diff) | |
download | ansible-59c61bc88ab199e2d7230c41d3134a8332200b49.tar.gz |
update docs to uninstall ansible-base on upgrade (#74024)
Diffstat (limited to 'docs/docsite/rst')
-rw-r--r-- | docs/docsite/rst/installation_guide/intro_installation.rst | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/docs/docsite/rst/installation_guide/intro_installation.rst b/docs/docsite/rst/installation_guide/intro_installation.rst index 89dacb2cad..6e30bf6401 100644 --- a/docs/docsite/rst/installation_guide/intro_installation.rst +++ b/docs/docsite/rst/installation_guide/intro_installation.rst @@ -115,6 +115,10 @@ You may need to perform some additional configuration before you are able to run Installing Ansible with ``pip`` ------------------------------- +.. note:: + + If you have Ansible 2.9 or older installed or Ansible 3, see :ref:`pip_upgrade`. + Once ``pip`` is installed, you can install Ansible [1]_:: $ python -m pip install --user ansible @@ -145,7 +149,7 @@ Installing Ansible in a virtual environment with ``pip`` .. note:: - If you have Ansible 2.9 or older installed, you need to use ``pip uninstall ansible`` first to remove older versions of Ansible before re-installing it. + If you have Ansible 2.9 or older installed or Ansible 3, see :ref:`pip_upgrade`. Ansible can also be installed inside a new or existing ``virtualenv``:: @@ -183,6 +187,28 @@ As explained by the message, to upgrade you must first remove the version of Ans $ pip uninstall ansible $ pip install ansible + +Upgrading from Ansible 3 or ansible-core 2.10 +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +``ansible-base`` only exists for version 2.10 and in Ansible 3. In 2.11 and later, the package is called ``ansible-core``. Before installing ``ansible-core`` or Ansible 4, you must uninstall ``ansible-base`` if you have installed Ansible 3 or ``ansible-base`` 2.10. + + +To upgrade to ``ansible-core``: + +.. code-block:: bash + + pip uninstall ansible-base + pip install ansible-core + +To upgrade to Ansible 4: + +.. code-block:: bash + + pip uninstall ansible-base + pip install ansible + + .. _installing_the_control_node: .. _from_yum: @@ -335,7 +361,10 @@ The instructions can be found in :ref:`from_pip`. If you are running macOS versi .. note:: - To upgrade from Ansible 2.9 or older to Ansible 3 or later, you must ``pip uninstall ansible`` first to remove older versions of Ansible before re-installing it. + .. note:: + + If you have Ansible 2.9 or older installed or Ansible 3, see :ref:`pip_upgrade`. + .. note:: @@ -433,7 +462,9 @@ You can install the ``devel`` branch of ``ansible-core`` directly from GitHub wi .. note:: - If you have Ansible 2.9 or older installed, you need to use ``pip uninstall ansible`` first to remove older versions of Ansible before re-installing it. See :ref:`pip_upgrade` for more details. + If you have Ansible 2.9 or older installed or Ansible 3, see :ref:`pip_upgrade`. + + You can replace ``devel`` in the URL mentioned above, with any other branch or tag on GitHub to install older versions of Ansible (prior to ``ansible-base`` 2.10.), tagged alpha or beta versions, and release candidates. This installs all of Ansible. |