From 70f4e0807c28628786601e76ca9ccb27d6807284 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Mon, 17 Mar 2014 15:03:05 -0400 Subject: [PATCH] Fixes #6467 ansible command should not assume sudo if ask_sudo_pass or sudo_user --- bin/ansible | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/ansible b/bin/ansible index 0189355ddbf..86a91d0b492 100755 --- a/bin/ansible +++ b/bin/ansible @@ -160,8 +160,6 @@ class Cli(object): if options.su_user or options.ask_su_pass: options.su = True - elif options.sudo_user or options.ask_sudo_pass: - options.sudo = True options.sudo_user = options.sudo_user or C.DEFAULT_SUDO_USER options.su_user = options.su_user or C.DEFAULT_SU_USER if options.tree: