{"id":18938976,"url":"https://github.com/ehashman/molecule-demo","last_synced_at":"2025-06-24T04:09:38.636Z","repository":{"id":73796185,"uuid":"102147724","full_name":"ehashman/molecule-demo","owner":"ehashman","description":"Molecule for Ansible Role Testing Demonstration for AnsibleFest 2017","archived":false,"fork":false,"pushed_at":"2018-09-22T15:30:26.000Z","size":10,"stargazers_count":18,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T21:09:45.233Z","etag":null,"topics":["ansible","cowsay","infrastructure-as-code","integration-testing","molecule","testinfra"],"latest_commit_sha":null,"homepage":"https://hashman.ca/ansiblefest-2017/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ehashman.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,"zenodo":null}},"created_at":"2017-09-01T19:46:35.000Z","updated_at":"2024-12-02T19:14:22.000Z","dependencies_parsed_at":"2023-04-04T12:20:55.649Z","dependency_job_id":null,"html_url":"https://github.com/ehashman/molecule-demo","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ehashman/molecule-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehashman%2Fmolecule-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehashman%2Fmolecule-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehashman%2Fmolecule-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehashman%2Fmolecule-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ehashman","download_url":"https://codeload.github.com/ehashman/molecule-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehashman%2Fmolecule-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261601527,"owners_count":23183097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","cowsay","infrastructure-as-code","integration-testing","molecule","testinfra"],"created_at":"2024-11-08T12:16:00.243Z","updated_at":"2025-06-24T04:09:38.625Z","avatar_url":"https://github.com/ehashman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AnsibleFest 2017 Molecule Demo\n\nLet's learn how to use Molecule!\n\nThe recording of this talk and demo is available on the [AnsibleFest 2017\nwebsite](https://www.ansible.com/infastructure-testing-with-molecule).\n\n## Installation\n\nWe'll need a working python installation (including development headers),\nvirtualenv, and any system dependencies of Ansible (namely, OpenSSL).\n\nOn Debian-based systems, you can run:\n\n```bash\n$ sudo apt-get install gcc python-dev python-pip python-virtualenv \\\n                       python-vagrant libssl-dev libffi-dev\n```\n\nThen we'll need to create a virtual environment:\n\n```bash\n~/ansible-role$ virtualenv ~/virtualenvs/ansiblefest\nNew python executable in /home/elana/virtualenvs/ansiblefest/bin/python\nInstalling setuptools, pip...done.\n```\n\nAnd activate it:\n\n```bash\n~/ansible-role$ source ~/virtualenvs/molecule/bin/activate\n(molecule) ~/ansible-role$\n```\n\nNow we can install molecule. I recommend that we install the latest stable\nrelease of v1; otherwise, v2 will install by default, and this presentation is\nbased around v1.\n\n```bash\n(molecule) ~/ansible-role$ pip install molecule==1.25.0\n...\nSuccessfully installed ansible-2.3.2.0 ansible-lint-3.4.12 anyconfig-0.7.0\n  arrow-0.10.0 binaryornot-0.4.4 chardet-3.0.4 click-6.7 colorama-0.3.7\n  cookiecutter-1.5.1 flake8-3.3.0 future-0.16.0 jinja2-time-0.2.0 mccabe-0.6.1\n  molecule-1.25.0 pbr-2.1.0 pexpect-4.2.1 poyo-0.4.1 ptyprocess-0.5.2 py-1.4.34\n  pycodestyle-2.3.1 pycrypto-2.6.1 pyflakes-1.5.0 pytest-3.2.1\n  python-dateutil-2.6.1 sh-1.12.13 tabulate-0.7.7 testinfra-1.5.5\n  whichcraft-0.4.1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehashman%2Fmolecule-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fehashman%2Fmolecule-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehashman%2Fmolecule-demo/lists"}