Molecule

A testing framework for Ansible roles that creates a disposable test machine, applies the role, checks the result and destroys the machine.

In more detail

Tests are organised as scenarios, each with a driver that chooses where the test machine runs, such as a container or a virtual machine. Molecule exercises the role against a real target, which catches problems syntax checks and linting cannot. Its evidence is limited to the platforms and driver you chose, so state those limits in the test report.

Related terms

Taught in

References