Debian Codegraph @

src/ansiblelint/rules/playbook_extension.md

raw symbols SCIP
1 # playbook-extension
2
3 This rule checks the file extension for playbooks is either `.yml` or `.yaml`.
4 Ansible playbooks are expressed in YAML format with minimal syntax.
5
6 The [YAML syntax](https://docs.ansible.com/projects/ansible/latest/reference_appendices/YAMLSyntax.html#yaml-syntax) reference provides additional detail.
7
8 ## Problematic Code
9
10 This rule is triggered if Ansible playbooks do not have a file extension or use an unsupported file extension such as `playbook.json` or `playbook.xml`.
11
12 ## Correct Code
13
14 Save Ansible playbooks as valid YAML with the `.yml` or `.yaml` file extension.