syntax check

A quick test that a playbook is valid YAML and valid Ansible structure, without connecting to any host or running anything.

In more detail

Run it with ansible-playbook --syntax-check. It catches misplaced indentation and unknown keywords, but not whether tasks will work, which is what linting and Molecule add.

Related terms

Taught in

References

Certification courses