Reference sudo flag changeability.
This commit is contained in:
parent
1e3df3b5ab
commit
cde5b4b80c
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue