How do you lint playbooks and fail the build only on serious issues?
BeginnerScenarioPerformance, Testing and CI/CD
Answer
Situation read → Gradual lint adoption.
What I'd do →
# .ansible-lint
profile: moderate
skip_list: [yaml[line-length]]
warn_list: [experimental]
ansible-lint
Why → Profiles raise the bar over time (min, basic, moderate, safety, shared, production).
Interview tip → Use # noqa rule-name sparingly with a comment on why.
More on Performance, Testing and CI/CD
A playbook that touches 200 hosts takes 40 minutes. Where do you start tuning?IntermediateYou install 15 packages with a loop and it is slow.BeginnerHow would you test a role in CI before it reaches production?IntermediateWhat would a Molecule `verify.yml` check for an Nginx role?IntermediateMolecule's idempotence step fails. How do you find the offending task?IntermediateDesign a CI pipeline for an Ansible repo.Advanced