Check Ansible syntax
Syntax Check Ansible has a built-in utility to validate the syntax of your yaml files. Add --syntax-check to your ansible-playbook execution and the yaml parser will validate your file formatting without running tasks. 1 $ ansible-playbook ping.yml --syntax-check If your playbook passes the check, the output is rather boring. 1 2 $ ansible-playbook unarchive.yaml --syntax-check playbook: unarchive.yaml The interpreter for --syntax-check strictly cares about whether it can interpret raw yaml and cares nothing for best practices like naming all your tasks, deprecated modules, idempotency, missing metadata, or spacing in your variable invocations....