What do `ansible-lint` and `yamllint` check?
BeginnerConceptVault, Privilege Escalation and Error Handling
Answer
yamllint checks YAML style: indentation, line length, trailing spaces, truthy values. ansible-lint checks Ansible best practices: FQCN use, unnamed tasks, command used where a module exists, missing changed_when, risky file permissions, deprecated syntax.
ansible-lint site.yml roles/
ansible-lint --profile production
Profiles go from min to production and get stricter. Run both locally via pre-commit and in CI so style problems never reach review.
More on Vault, Privilege Escalation and Error Handling
What is Ansible Vault?BeginnerWhich `ansible-vault` commands do you use day to day?BeginnerHow do you supply the vault password when running a playbook?BeginnerWhat is `encrypt_string` and when is it better than encrypting a whole file?IntermediateWhat are vault IDs and why use them?AdvancedHow is Vault data encrypted and what does the file look like?Advanced