From 2850b8d92167d3e03c9875589aa376b30172e450 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 14 Apr 2012 08:42:24 -0400 Subject: [PATCH] Add sudo password info. --- rst/examples.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rst/examples.rst b/rst/examples.rst index 5afab3f78e3..419e9590c65 100644 --- a/rst/examples.rst +++ b/rst/examples.rst @@ -25,9 +25,11 @@ If you want to run commands as a different user than root:: ansible atlanta -a "/usr/bin/foo" -u yourname -If you want to run commands through sudo:: +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::