From 48aa0dd1c729e05c5360e3fa17e1903d1e0b0df9 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 27 Aug 2015 18:21:57 -0400 Subject: [PATCH] now acknowledges ask_pass setting from ansible.cfg fixes #12111 --- lib/ansible/cli/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/cli/__init__.py b/lib/ansible/cli/__init__.py index 3b9be15760..1de7106c82 100644 --- a/lib/ansible/cli/__init__.py +++ b/lib/ansible/cli/__init__.py @@ -305,7 +305,7 @@ class CLI(object): if connect_opts: - parser.add_option('-k', '--ask-pass', default=False, dest='ask_pass', action='store_true', + parser.add_option('-k', '--ask-pass', default=C.DEFAULT_ASK_PASS, dest='ask_pass', action='store_true', help='ask for connection password') parser.add_option('--private-key','--key-file', default=C.DEFAULT_PRIVATE_KEY_FILE, dest='private_key_file', help='use this file to authenticate the connection')