Software >> Automation >> Ansible >> What tools can be used to check your playbook yaml syntax before running the playbook

Use Ansible :

ansible-playbook --syntax-check myyaml.yml

 

Use Python :

python -c 'import yaml, sys; print yaml.load(sys.stdin)' < myyaml.yml

 

Use online tools