Merge pull request #2011 from schmic/devel

No authentication when ansible-playbook is called with --syntax-check
pull/1982/merge
Daniel Hokka Zakrisson 12 years ago
commit 663052dd16

@ -77,7 +77,7 @@ def main(args):
sshpass = 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
if options.ask_pass:
sshpass = getpass.getpass(prompt="SSH password: ")

Loading…
Cancel
Save