CmdID

CmdID / Commands

ansible-lint

Apply rules and follow best practices with your automation content. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Lint a specific playbook and a role directory

ansible-lint path/to/playbook_file path/to/role_directoryIdentify

Lint a playbook while excluding specific rules

ansible-lint --exclude-rules rule1,rule2,... path/to/playbook_fileIdentify

Lint a playbook in offline mode and format output as PEP8

ansible-lint --offline --parseable path/to/playbook_fileIdentify

Lint a playbook using a custom rules directory

ansible-lint --rules path/to/custom_rules_directory path/to/playbook_fileIdentify

Lint all Ansible content recursively in a given directory

ansible-lint path/to/project_directoryIdentify