You need to confirm a role runs on both Ubuntu 22.04 and Rocky 9.
IntermediateScenarioPerformance, Testing and CI/CD
Answer
Situation read → Multi-platform testing.
What I'd do → Add platforms to molecule.yml and pass the image via env var so CI can matrix it.
platforms:
- name: instance
image: "${MOLECULE_DISTRO:-ubuntu2404}"
In CI run a job matrix over ubuntu2204, rockylinux9.
Why → Parallel CI jobs per distro keep wall time low.
Interview tip → Use images with systemd for service tests.
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