{"library":"molecule-plugins","title":"Molecule Plugins","description":"Molecule Plugins is a monorepository containing various drivers for the Molecule Ansible testing framework, including Azure, Docker, EC2, GCE, OpenStack, Podman, and Vagrant. It centralizes the development and maintenance of these plugins to ensure compatibility and reduce overhead. Molecule itself is an Ansible testing framework designed for developing and testing Ansible collections, playbooks, and roles. The library is actively maintained with a CalVer release cadence, with the current version being 25.8.12.","language":"python","status":"active","last_verified":"Sun Apr 12","install":{"commands":["pip install 'molecule-plugins[docker]' 'molecule-plugins[podman]' # or other drivers like azure, ec2, gce, openstack, vagrant","pip install molecule # Molecule core\npip install 'molecule-plugins[all]' # Install all available drivers (may pull many dependencies)"],"cli":{"name":"molecule","version":"[notice] To update, run: pip install --upgrade pip"}},"imports":[],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# 1. Initialize an Ansible role (since Molecule 6.0.0, use ansible-galaxy init)\nansible-galaxy role init my_ansible_role\ncd my_ansible_role\n\n# 2. Initialize a Molecule scenario (e.g., with docker driver)\n# A molecule.yml file will be created in molecule/default\nmolecule init scenario default --driver-name docker --verifier-name ansible\n\n# 3. Modify molecule/default/molecule.yml if needed (e.g., specify platform image)\n# Example snippet for molecule/default/molecule.yml:\n# platforms:\n#   - name: instance\n#     image: 'docker.io/pycontribs/centos:8'\n#     pre_build_image: true\n\n# 4. Run tests for the default scenario\nmolecule test --all","lang":"bash","description":"This quickstart demonstrates how to set up an Ansible role with a Molecule test scenario using the Docker driver. After initializing the role and scenario, you can customize the `molecule.yml` to define your test platforms and then execute the tests.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}