mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixes #6467 ansible command should not assume sudo if ask_sudo_pass or sudo_user
This commit is contained in:
parent
7edee91aba
commit
70f4e0807c
1 changed files with 0 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue