mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 15:34:01 -07:00
started implementing syntax check
This commit is contained in:
parent
f9f8af06fc
commit
d1977dad23
2 changed files with 9 additions and 2 deletions
|
@ -87,7 +87,7 @@ class PlaybookCLI(CLI):
|
|||
passwords = {}
|
||||
|
||||
# don't deal with privilege escalation or passwords when we don't need to
|
||||
if not self.options.listhosts and not self.options.listtasks and not self.options.listtags:
|
||||
if not self.options.listhosts and not self.options.listtasks and not self.options.listtags and not self.options.syntax:
|
||||
self.normalize_become_options()
|
||||
(sshpass, becomepass) = self.ask_passwords()
|
||||
passwords = { 'conn_pass': sshpass, 'become_pass': becomepass }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue