{"id":22091936,"url":"https://github.com/dbrennand/molecule-demo","last_synced_at":"2026-04-27T12:31:38.849Z","repository":{"id":185381953,"uuid":"673439831","full_name":"dbrennand/molecule-demo","owner":"dbrennand","description":"This repository is a demo of how to use Molecule to test an Ansible playbook.","archived":false,"fork":false,"pushed_at":"2023-08-02T07:39:37.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T12:53:49.359Z","etag":null,"topics":["ansible","ansible-playbook","molecule","testing"],"latest_commit_sha":null,"homepage":"https://danielbrennand.com/blog/testing-ansible-content","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbrennand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-01T16:16:14.000Z","updated_at":"2024-03-20T13:47:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"64dfdd5e-e36f-4ec5-9d67-7978e7dbd27b","html_url":"https://github.com/dbrennand/molecule-demo","commit_stats":null,"previous_names":["dbrennand/molecule-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dbrennand/molecule-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrennand%2Fmolecule-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrennand%2Fmolecule-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrennand%2Fmolecule-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrennand%2Fmolecule-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbrennand","download_url":"https://codeload.github.com/dbrennand/molecule-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrennand%2Fmolecule-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32337268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-playbook","molecule","testing"],"created_at":"2024-12-01T03:07:31.213Z","updated_at":"2026-04-27T12:31:38.828Z","avatar_url":"https://github.com/dbrennand.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# molecule-demo\n\nThis repository is a demo of how to use [Molecule](https://molecule.readthedocs.io/en/latest/) to test an Ansible playbook.\n\nThis repository complements my blog post [Testing Ansible Content with Molecule](https://danielbrennand.com/blog/testing-ansible-content).\n\nThe [playbook](playbook.yml) in this repository installs [Nginx](https://www.nginx.com/). The [default](molecule/default) molecule scenario tests the playbook against a Debian container instance. The Docker driver is used to create the instance.\n\n## Requirements\n\n- Python \u003e= 3.11\n- Docker \u003e= 24.0.5\n\n## Usage\n\n1. Create the Python virtual environment and install the dependencies:\n\n    ```bash\n    mkdir -pv ~/.virtualenvs\n    python3 -m venv ~/.virtualenvs/molecule-demo\n    source ~/.virtualenvs/molecule-demo/bin/activate\n    pip install -r requirements.txt\n    ```\n\n2. Run the full test sequence with Molecule:\n\n    ```bash\n    molecule test\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrennand%2Fmolecule-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbrennand%2Fmolecule-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrennand%2Fmolecule-demo/lists"}