doc: Document --syntax-check flag for ansible-playbook (#22256)

It wasn't previously documented outside of the help / manpage, which made it less discoverable.
pull/22292/head
Adam Johnson 9 years ago committed by scottb
parent 72c96b3ac3
commit d01ac3a019

@ -453,6 +453,9 @@ There's also a `clever playbook <https://github.com/ansible/ansible-examples/blo
Tips and Tricks Tips and Tricks
``````````````` ```````````````
To check the syntax of a playbook, use ``ansible-playbook`` with the ``--syntax-check`` flag. This will run the
playbook file through the parser to ensure its included files, roles, etc. have no syntax problems.
Look at the bottom of the playbook execution for a summary of the nodes that were targeted Look at the bottom of the playbook execution for a summary of the nodes that were targeted
and how they performed. General failures and fatal "unreachable" communication attempts are and how they performed. General failures and fatal "unreachable" communication attempts are
kept separate in the counts. kept separate in the counts.

Loading…
Cancel
Save