Skip to content

Commit 6746ec6

Browse files
authored
Allow become_ask_pass from config to work (ansible#52590)
1 parent d01d94c commit 6746ec6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ansible/cli/arguments/optparse_helpers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ def add_runas_prompt_options(parser, runas_group=None):
328328
runas_group = optparse.OptionGroup(parser, "Privilege Escalation Options",
329329
"control how and which user you become as on target hosts")
330330

331-
runas_group.add_option('-K', '--ask-become-pass', default=False, dest='become_ask_pass', action='store_true',
332-
help='ask for privilege escalation password')
331+
runas_group.add_option('-K', '--ask-become-pass', dest='become_ask_pass', action='store_true',
332+
help='ask for privilege escalation password', default=C.DEFAULT_BECOME_ASK_PASS)
333333

334334
parser.add_option_group(runas_group)
335335

0 commit comments

Comments
 (0)