From 9dcde77e0e88a1296f81cf6b1c69c72fbe88b019 Mon Sep 17 00:00:00 2001 From: "Ryan S. Brown" Date: Thu, 15 Oct 2015 13:35:07 -0400 Subject: [PATCH 1/2] Document using the `raw` module to install a py2.X and simplejson In the installation guide, the raw module is mentioned as an option for installing Python or simplejson on managed nodes that don't have them. This change adds an example for users that may already be familiar with using ansible but are checking install docs because they don't know the requirements for managed nodes, or are using a distribution that doesn't include Python 2 by default. --- docsite/rst/intro_installation.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docsite/rst/intro_installation.rst b/docsite/rst/intro_installation.rst index bce34adbbb4..446e309913d 100644 --- a/docsite/rst/intro_installation.rst +++ b/docsite/rst/intro_installation.rst @@ -89,8 +89,12 @@ Also you need Python 2.4 or later, but if you are running less than Python 2.5 o the 'ansible_python_interpreter' variable in inventory (see :doc:`intro_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. + 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. For example, + ``ansible myhost --sudo -m raw -a "yum install python2 python-simplejson"`` + would install Python 2.X and the simplejson module needed to run ansible and its modules. .. _installing_the_control_machine: From 48e1396496291ecfbb8206d21da563e2757cb9f5 Mon Sep 17 00:00:00 2001 From: "Ryan S. Brown" Date: Thu, 15 Oct 2015 13:55:53 -0400 Subject: [PATCH 2/2] Add -y to yum command, otherwise it would hang indefinitely --- docsite/rst/intro_installation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docsite/rst/intro_installation.rst b/docsite/rst/intro_installation.rst index 446e309913d..28bbd691513 100644 --- a/docsite/rst/intro_installation.rst +++ b/docsite/rst/intro_installation.rst @@ -93,7 +93,7 @@ Also you need Python 2.4 or later, but if you are running less than Python 2.5 o If you need to bootstrap these remote systems by installing Python 2.X, using the 'raw' module will be able to do it remotely. For example, - ``ansible myhost --sudo -m raw -a "yum install python2 python-simplejson"`` + ``ansible myhost --sudo -m raw -a "yum install -y python2 python-simplejson"`` would install Python 2.X and the simplejson module needed to run ansible and its modules. .. _installing_the_control_machine: