Interview Prep/Ansible/Testing, CI/CD and Quality

How do you roll out `ansible-lint` profiles across a team without blocking everyone?

IntermediateProductionTesting, CI/CD and Quality
Answer

ansible-lint ships progressive profiles: min, basic, moderate, safety, shared, production. Each one includes the rules of the previous profile. We never jump an existing repo straight to production; we start at the level the code already passes and tighten one step per sprint.

# .ansible-lint
profile: moderate        # next quarter: safety, then production
exclude_paths:
  - .cache/
  - collections/ansible_collections/
offline: true            # do not hit Galaxy during lint in CI

New repos start at production from day one. CI runs the same config as developers so there is no "passes on my laptop" argument.

All Ansible questions Roadmap: Ansible

More on Testing, CI/CD and Quality