molecule-vagrant
Vagrant Molecule Plugin :: run molecule tests using Vagrant
What it is and what it does
Molecule Vagrant Plugin is a driver for the Molecule testing framework that uses Vagrant to provision and manage test instances. It allows developers to define test scenarios in molecule.yml that spin up virtual machines via Vagrant (supporting providers like VirtualBox, libvirt, and Parallels) and then run Molecule's test sequence against those instances.
The plugin integrates Vagrant's configuration model directly into Molecule, letting you specify box images, network interfaces, resource allocation, and raw Vagrant provisioning directives. It depends on molecule, python-vagrant for Vagrant CLI interaction, and standard Python libraries like pyyaml and Jinja2 for configuration templating. The package requires Python 3.9 or later and is known to work on macOS with VirtualBox and Fedora/Ubuntu with libvirt, though Vagrant's CLI installation can be problematic on some platforms.
Use it for:
- Test Ansible roles and playbooks across multiple OS distributions by defining Vagrant boxes in molecule.yml
- Set up multi-node test environments with custom networking, forwarded ports, and synced folders for integration testing
- Run Molecule tests locally on developer machines using VirtualBox or on CI systems with libvirt
- Configure raw Vagrant provisioning steps and provider-specific options directly within Molecule scenarios
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Molecule Vagrant Plugin enables Vagrant-based provisioning and testing of infrastructure for Ansible molecule test scenarios, integrating Vagrant as a driver for test resource orchestration.
No. The package is abandoned (last release 2023-01-06, repository archived) with no maintenance for 1316 days. While it carries no known vulnerabilities and has permissive licensing, the lack of updates means it will not track Molecule, Ansible, or Vagrant ecosystem changes. Use only if locked into an existing project already using this version.
Install
molecule-vagrant on PyPI
pip
pip install molecule-vagrantuv
uv add molecule-vagrantpoetry
poetry add molecule-vagrantInstalling molecule-vagrant
Before you install
Low install friction with a pure-Python wheel distribution. However, the package is abandoned as of January 2023 with no recent maintenance; the underlying Vagrant CLI dependency is known to have platform-specific installation issues on some systems.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or distribution in proprietary or open-source contexts.
Quickstart
pip install molecule-vagrant
In molecule.yml:
driver:
name: vagrant
platforms:
- name: instance
box: fedora/32-cloud-base
memory: 512
cpus: 1
Requires Vagrant CLI to be installed and functional on the host system; Vagrant installation is known to be problematic on some platforms including CentOS 8.
Verify before relying
- Compatibility with recent Molecule and Ansible versions given the January 2023 last release
- Status of the five runtime dependencies in current ecosystems
- Whether the package works with modern Vagrant versions and providers
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — molecule, pyyaml, Jinja2, selinux, python-vagrant |
| Maintenance | abandoned — 1,316 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 525,587/month — #6,184 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: molecule_vagrant-2.0.0-py3-none-any.whl
Keywords: ansible, roles, testing, molecule, plugin, vagrant
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
molecule-dockerMolecule Docker Plugin enables Docker…
permissive · top 15,000 on PyPI
molecule-multipassIntegrates Multipass virtual machines as a…
permissive · top 15,000 on PyPI
python-vagrantProgrammatic control of Vagrant virtual…
permissive · top 5,000 on PyPI
molecule-pluginsProvides driver plugins for molecule that…
permissive · top 5,000 on PyPI
moleculeMolecule is an Ansible testing framework for…
permissive · top 5,000 on PyPI
ansibleAnsible is an IT automation system that handles…
copyleft · top 5,000 on PyPI
pytest-ansibleA pytest plugin that integrates Ansible into…
permissive · top 5,000 on PyPI
ansible-baseAnsible-base is the core automation engine for…
copyleft · top 15,000 on PyPI
ansible-dev-toolsBundles and installs a curated suite of Ansible…
copyleft · top 15,000 on PyPI
ansible-coreAnsible Core is the engine for agentless IT…
copyleft · top 5,000 on PyPI