Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d01ac3a

Browse files
adamchainzdharmabumstead
authored andcommitted
doc: Document --syntax-check flag for ansible-playbook (ansible#22256)
It wasn't previously documented outside of the help / manpage, which made it less discoverable.
1 parent 72c96b3 commit d01ac3a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/docsite/rst/playbooks_intro.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,9 @@ There's also a `clever playbook <https://github.com/ansible/ansible-examples/blo
453453
Tips and Tricks
454454
```````````````
455455

456+
To check the syntax of a playbook, use ``ansible-playbook`` with the ``--syntax-check`` flag. This will run the
457+
playbook file through the parser to ensure its included files, roles, etc. have no syntax problems.
458+
456459
Look at the bottom of the playbook execution for a summary of the nodes that were targeted
457460
and how they performed. General failures and fatal "unreachable" communication attempts are
458461
kept separate in the counts.

0 commit comments

Comments
 (0)