Ansible Playbook
Ansible playbook files
| Type | array | object |
|---|---|
| File match |
playbook.yml
playbook.yaml
site.yml
site.yaml
**/playbooks/*.yml
**/playbooks/*.yaml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/ansible-playbook/latest.json |
| Source | https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible.json#/$defs/playbook |
Validate with Lintel
npx @lintel/lintel check
Definitions
See include module
See become
Blocks create logical groups of tasks. Blocks also offer ways to handle task errors, similar to exception handling in many programming languages. See blocks
See become
See ignore_errors
See become
See ignore_errors
See https://docs.ansible.com/projects/ansible/latest/playbook_guide/playbooks_strategies.html#ordering-execution-based-on-inventory
Roles let you automatically load related vars, files, tasks, handlers, and other Ansible artifacts based on a known file structure. After you group your content in roles, you can easily reuse them and share them with other users. See roles
Integer, percentage or list of those. See Setting the batch size with serial
See vars_prompt
"**/*.meta.yml""**/*.meta.yaml"
Brief description of the playbook
Detailed description of the playbook
Argument specifications for the playbook
See roles
See become
See ignore_errors
"playbooks/*.yml""playbooks/*.yaml"
See include module
See include module
See include module
See become
See ignore_errors
Applies only to handlers. See listen
Use for protecting sensitive data. See no_log
See loops
"tasks/*.yml""handlers/*.yml"
See unsafe