From dd9e3430e4679fe2eef82248f35a207953692419 Mon Sep 17 00:00:00 2001 From: schmic Date: Thu, 7 Feb 2013 21:09:45 +0100 Subject: [PATCH] No authentication with --syntax-check --- bin/ansible-playbook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ansible-playbook b/bin/ansible-playbook index 138e5a0d93..8a2f359503 100755 --- a/bin/ansible-playbook +++ b/bin/ansible-playbook @@ -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: ")