mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Allow become_ask_pass from config to work (#52590)
This commit is contained in:
parent
d01d94c1f9
commit
6746ec6331
1 changed files with 2 additions and 2 deletions
|
@ -328,8 +328,8 @@ def add_runas_prompt_options(parser, runas_group=None):
|
|||
runas_group = optparse.OptionGroup(parser, "Privilege Escalation Options",
|
||||
"control how and which user you become as on target hosts")
|
||||
|
||||
runas_group.add_option('-K', '--ask-become-pass', default=False, dest='become_ask_pass', action='store_true',
|
||||
help='ask for privilege escalation password')
|
||||
runas_group.add_option('-K', '--ask-become-pass', dest='become_ask_pass', action='store_true',
|
||||
help='ask for privilege escalation password', default=C.DEFAULT_BECOME_ASK_PASS)
|
||||
|
||||
parser.add_option_group(runas_group)
|
||||
|
||||
|
|
Loading…
Reference in a new issue