ansible-playbook --syntax-check site.yml

Category: IaC & Automation

ansible-playbook --syntax-check site.yml

Validate playbook syntax without running it

Parses site.yml and reports syntax errors, catching typos, bad indentation, and malformed tasks before anything executes. It does not validate logic against real hosts. Related: ansible-playbook --check site.yml.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.