1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #2011 from schmic/devel

No authentication when ansible-playbook is called with --syntax-check
This commit is contained in:
Daniel Hokka Zakrisson 2013-02-07 12:16:51 -08:00
commit 663052dd16

View file

@ -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: ")