From cde5b4b80cfcd5d130d2614cfc4f000ab711752c Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 2 Feb 2013 12:24:48 -0500 Subject: [PATCH] Reference sudo flag changeability. --- docsite/rst/gettingstarted.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docsite/rst/gettingstarted.rst b/docsite/rst/gettingstarted.rst index 04653c4f195..da72d1958b9 100644 --- a/docsite/rst/gettingstarted.rst +++ b/docsite/rst/gettingstarted.rst @@ -205,9 +205,8 @@ Now ping all your nodes: $ ansible all -m ping -In Ansible 0.7 and later, ansible will attempt to remote connect to the machines using your current -user name, just like SSH would. In 0.6 and before, this actually defaults to 'root' (we liked the current -user behavior better). To override the remote user name, just use the '-u' parameter. +Ansible will attempt to remote connect to the machines using your current +user name, just like SSH would. To override the remote user name, just use the '-u' parameter. If you would like to access sudo mode, there are also flags to do that: @@ -220,6 +219,9 @@ If you would like to access sudo mode, there are also flags to do that: # as bruce, sudoing to batman $ ansible all -m ping -u bruce --sudo --sudo-user batman +(The sudo implementation is changeable in ansbile's configuration file if you happen to want to use a sudo +replacement. Flags passed dot sudo can also be set.) + Now run a live command on all of your nodes: .. code-block:: bash