ansible-lint
Verified for current stable LTS
Ansible Lint Command: Lint Specific Playbook And Role
An engineer would use the 'ansible-lint' command to check a specific Ansible playbook and its associated role directory for compliance with best practices and coding standards before deploying it in a production environment. Exact CLI syntax to lint specific playbook and role using Ansible Lint.
When to use this: An engineer would use the 'ansible-lint' command to check a specific Ansible playbook and its associated role directory for compliance with best practices and coding standards before deploying it in a production environment.
Command Syntax
ansible-lint <path/to/playbook_file> <path/to/role_directory> ansible-lint <path/to/playbook_file> <path/to/role_directory> Command Breakdown
ansible-lint is the base executable for this command.
FAQ
Purpose: Exact syntax to lint specific playbook and role using Ansible Lint.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Ansible Lint Command: Lint Playbook Offline Pep8
ansible-lint -o -p <path/to/playbook_file> Ansible Lint Command: Lint All Ansible Content Recursively ansible-lint <path/to/project_directory> Ansible Lint Command: Lint Playbook Exclude Rules ansible-lint -x <rule1,rule2,...> <path/to/playbook_file> Ansible Lint Command: Lint Playbook Custom Rules Directory ansible-lint -r <path/to/custom_rules_directory> <path/to/playbook_file> Ansible Lint Command: Lint Playbook With Custom Rules Directory ansible-lint -r <path/to/custom_rules_directory> <path/to/playbook_file>