summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMark Mandel <mark.mandel@gmail.com>2013-06-21 15:20:12 +0200
committerMark Mandel <mark.mandel@gmail.com>2013-06-21 15:20:12 +0200
commit73dda68e18a469f77b079d97e4d4ce92044674db (patch)
tree729d259dda0d174cd235d370a9e15b4fdbd76909 /bin
parentMerge pull request #3288 from espro/devel (diff)
downloadansible-73dda68e18a469f77b079d97e4d4ce92044674db.tar.xz
ansible-73dda68e18a469f77b079d97e4d4ce92044674db.zip
Don't turn on sudo for all tasks when setting the sudo_user or ask_sudo_pass,
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ansible-playbook2
1 files changed, 0 insertions, 2 deletions
diff --git a/bin/ansible-playbook b/bin/ansible-playbook
index b674000bf2..335f713b29 100755
--- a/bin/ansible-playbook
+++ b/bin/ansible-playbook
@@ -95,8 +95,6 @@ def main(args):
options.ask_pass = options.ask_pass or C.DEFAULT_ASK_PASS
options.ask_sudo_pass = options.ask_sudo_pass or C.DEFAULT_ASK_SUDO_PASS
( sshpass, sudopass ) = utils.ask_passwords(ask_pass=options.ask_pass, ask_sudo_pass=options.ask_sudo_pass)
- if options.sudo_user or options.ask_sudo_pass:
- options.sudo = True
options.sudo_user = options.sudo_user or C.DEFAULT_SUDO_USER
if options.extra_vars and options.extra_vars[0] in '[{':
extra_vars = utils.json_loads(options.extra_vars)