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
|
||||
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…
Reference in a new issue