Ansible Molecule
About Ansible Molecule
Molecule project is designed to aid in the development and testing of Ansible roles.
Molecule provides support for testing with multiple instances, operating systems and distributions, virtualization providers, test frameworks and testing scenarios.
Molecule encourages an approach that results in consistently developed roles that are well-written, easily understood and maintained.
Molecule supports only the latest two major versions of Ansible (N/N-1), meaning that if the latest version is 2.9.x, we will also test our code with 2.8.x.
Once installed, the command line can be called using any of the methods below:
molecule ...
python3 -m molecule ... # python module calling method
Installation and Upgrade
Using Molecule
Common Molecule Use Cases
Contributing to Molecule
References and Appendices
External Resources
Below you can see a list of useful articles and presentations, recently updated being listed first:
Ansible Collections: Role Tests with Molecule @ericsysmin
Molecule v3 Slides @ssbarnea.
Testing your Ansible roles with Molecule @geerlinguy