From adbf3590c54e86ed67bb5a55d48c6d151ed9503c Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 14 Apr 2012 08:45:27 -0400 Subject: [PATCH] Add info about sudo. --- YAMLSyntax.html | 2 +- api.html | 2 +- examples.html | 7 ++++--- faq.html | 18 +++++++++++++++++- genindex.html | 2 +- gettingstarted.html | 2 +- index.html | 17 +++++++++++------ moduledev.html | 2 +- modules.html | 2 +- patterns.html | 2 +- playbooks.html | 5 ++++- rst/faq.rst | 2 +- rst/playbooks.rst | 3 +++ search.html | 2 +- searchindex.js | 2 +- 15 files changed, 49 insertions(+), 21 deletions(-) diff --git a/YAMLSyntax.html b/YAMLSyntax.html index d2dae1b921c..a427259581d 100644 --- a/YAMLSyntax.html +++ b/YAMLSyntax.html @@ -245,7 +245,7 @@ languages:

Back to top

© Copyright 2012 Michael DeHaan.
- Last updated on Apr 12, 2012.
+ Last updated on Apr 14, 2012.
Created using Sphinx 1.0.8.

diff --git a/api.html b/api.html index 115d2a3a52f..bd4d94f5955 100644 --- a/api.html +++ b/api.html @@ -329,7 +329,7 @@ a conf.d file appropriately or something similar. Who knows.

Back to top

© Copyright 2012 Michael DeHaan.
- Last updated on Apr 12, 2012.
+ Last updated on Apr 14, 2012.
Created using Sphinx 1.0.8.

diff --git a/examples.html b/examples.html index e58de361899..e31474c057a 100644 --- a/examples.html +++ b/examples.html @@ -181,8 +181,9 @@ ssh-add ~/.ssh/id_rsa.pub
ansible atlanta -a "/usr/bin/foo" -u yourname

If you want to run commands through sudo:

-
ansible atlanta -a "/usr/bin/foo" -u yourname --sudo
-
+
+
ansible atlanta -a “/usr/bin/foo” -u yourname –sudo [–ask-sudo-pass]
+

Use –ask-sudo-pass (-K) if you are not using passwordless sudo.

If you need to access SSH on a different port:

ansible atlanta -a "/usr/bin/foo" -p 2112
@@ -340,7 +341,7 @@ a simplified syntax for this.

Back to top

© Copyright 2012 Michael DeHaan.
- Last updated on Apr 12, 2012.
+ Last updated on Apr 14, 2012.
Created using Sphinx 1.0.8.

diff --git a/faq.html b/faq.html index b8d165f42b5..cd75fb956ce 100644 --- a/faq.html +++ b/faq.html @@ -137,6 +137,7 @@ s.parentNode.insertBefore(ga, s);
  • Other Questions