Molecule aids in the development and testing of Ansible roles
Actively maintained. Last release 5 days ago, commits in 21 of the last 26 weeks. A safe choice.
pip install moleculeAbout Ansible Molecule
Molecule is an Ansible testing framework designed for developing and testing Ansible collections, playbooks, and roles.
Molecule leverages standard Ansible features including inventory, playbooks, and collections to provide flexible testing workflows. Test scenarios can target any system or service reachable from Ansible, from containers and virtual machines to cloud infrastructure, hyperscaler services, APIs, databases, and network devices. Molecule can also validate inventory configurations and dynamic inventory sources.
Molecule encourages an approach that results in consistently developed Ansible content that is well-written, easily understood and maintained.
Molecule supports only the latest two major versions of Ansible (N/N-1).
Once installed, the command line can be called using any of the methods below:
molecule ...
python3 -m molecule ... # python module calling method
Documentation
Read the documentation and more at https://docs.ansible.com/projects/molecule//.
Get Involved
See the Talk to us section of the documentation to ask questions, find help, and join the conversation.