Commit 663052dd by Daniel Hokka Zakrisson

Merge pull request #2011 from schmic/devel

No authentication when ansible-playbook is called with --syntax-check
parents dddfeac9 dd9e3430
...@@ -77,7 +77,7 @@ def main(args): ...@@ -77,7 +77,7 @@ def main(args):
sshpass = None sshpass = None
sudopass = None sudopass = None
if not options.listhosts: if not options.listhosts and not options.syntax:
options.ask_pass = options.ask_pass or C.DEFAULT_ASK_PASS options.ask_pass = options.ask_pass or C.DEFAULT_ASK_PASS
if options.ask_pass: if options.ask_pass:
sshpass = getpass.getpass(prompt="SSH password: ") sshpass = getpass.getpass(prompt="SSH password: ")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment