{"id":18987812,"url":"https://github.com/tuanpembual/molecule-ansible","last_synced_at":"2026-04-20T19:04:43.238Z","repository":{"id":80493999,"uuid":"87056346","full_name":"tuanpembual/molecule-ansible","owner":"tuanpembual","description":"Testing ansible role using molecule and serverspec","archived":false,"fork":false,"pushed_at":"2020-09-04T14:00:04.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T10:36:54.588Z","etag":null,"topics":["ansible","molecule","roles"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/tuanpembual.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-04-03T09:08:27.000Z","updated_at":"2020-09-04T14:00:07.000Z","dependencies_parsed_at":"2024-03-23T13:15:27.671Z","dependency_job_id":null,"html_url":"https://github.com/tuanpembual/molecule-ansible","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tuanpembual/molecule-ansible","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuanpembual%2Fmolecule-ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuanpembual%2Fmolecule-ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuanpembual%2Fmolecule-ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuanpembual%2Fmolecule-ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuanpembual","download_url":"https://codeload.github.com/tuanpembual/molecule-ansible/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuanpembual%2Fmolecule-ansible/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32061255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","molecule","roles"],"created_at":"2024-11-08T16:40:57.135Z","updated_at":"2026-04-20T19:04:43.220Z","avatar_url":"https://github.com/tuanpembual.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Molecule\nCreate and testing ansible role using Molecule and serverspec\n\n## Introduction\nI have post about this repo in my blog. So basicly this is just sample code for experiment.  \nHere [my url post](https://tuanpembual.wordpress.com/2017/04/03/molecule-automate-testing-tool-untuk-ansible-roles) about this molecule in my blog.\n\n## Dependency\n* virtualbox\n* vagrant\n* python pip\n* ansible\n* serverspec (verifier)\n\n## Install molecule-dep\n```\n$ apt-get update\n$ apt-get install gcc python-pip python-vagrant libssl-dev libffi-dev\n```\n\n## Install Molecule using pip:\n```\n$ pip install ansible\n$ pip install docker-py\n$ pip install molecule\n```\n\n## How to use\n`$ molecule --help` | to show others command  \n`$ molecule init --role nginx --verifier serverspec` | create new rule from scratch using serverspec for verifier  \n`$ bundle install`  \n\n## Addition setup\nWe using ubuntu xeniau64, so please edit platform section in molecule.yml  \n```\nplatforms:\n  - name: ubuntu/xenial64\n\tbox: ubuntu/xenial64\n\tbox_url: https://vagrantcloud.com/ubuntu/boxes/xenial64/versions/16.04/providers/virtualbox.box\n```\n\n## Testing\n`$ molecule test --destroy=always` | start testing  \nMore about `serverspec` testing can be found at [serverspec.org](http://serverspec.org/resource_types.html)\n\n## Debug  \n`$ ssh ubuntu@127.0.0.1 -p 2222 -i $(pwd)/nginx/.vagrant/machines/nginx/virtualbox/private_key`\n\n## Implement v1\nhosts file need create manual, and make sure public key configured  \n`$ ansible-playbook nginx/playbook.yml -i nginx/hosts --private-key ~/.ssh/id_rsa --user ubuntu`\n\n## Implement v2\n`$ ansible-playbook nginx/playbook.yml -i nginx/environment/staging --private-key ~/.ssh/id_rsa --user ubuntu`\n\n## Documentations\n* https://github.com/metacloud/molecule\n* https://molecule.readthedocs.io\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuanpembual%2Fmolecule-ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuanpembual%2Fmolecule-ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuanpembual%2Fmolecule-ansible/lists"}