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:
commit
663052dd16
1 changed files with 1 additions and 1 deletions
|
@ -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: ")
|
||||||
|
|
Loading…
Reference in a new issue