{"id":18127010,"url":"https://github.com/samdoran/docker-debian9-ansible","last_synced_at":"2026-05-08T00:45:45.429Z","repository":{"id":68708737,"uuid":"149794052","full_name":"samdoran/docker-debian9-ansible","owner":"samdoran","description":"A Docker container for testing Ansible roles","archived":false,"fork":false,"pushed_at":"2021-06-04T19:22:59.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T19:06:44.312Z","etag":null,"topics":["ansible","debian","docker"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samdoran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-09-21T17:10:24.000Z","updated_at":"2021-06-04T19:23:01.000Z","dependencies_parsed_at":"2023-02-26T02:30:24.711Z","dependency_job_id":null,"html_url":"https://github.com/samdoran/docker-debian9-ansible","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samdoran/docker-debian9-ansible","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdoran%2Fdocker-debian9-ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdoran%2Fdocker-debian9-ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdoran%2Fdocker-debian9-ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdoran%2Fdocker-debian9-ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samdoran","download_url":"https://codeload.github.com/samdoran/docker-debian9-ansible/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdoran%2Fdocker-debian9-ansible/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32762284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"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","debian","docker"],"created_at":"2024-11-01T09:14:00.675Z","updated_at":"2026-05-08T00:45:45.391Z","avatar_url":"https://github.com/samdoran.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Debian 9 Ansible Test Image #\n[![Container Repository on Quay](https://quay.io/repository/samdoran/debian9-ansible/status \"Container Repository on Quay\")](https://quay.io/repository/samdoran/debian9-ansible)\n\nThis is a container for testing Ansible roles with [Molecule](https://molecule.readthedocs.io/en/stable/). It includes the latest version of Ansible available on this platform and is rebuilt regularly. It can also be used if you need to run Ansible on a specific operating system.\n\nNote that Molecule does not use the Ansible version installed in the container when running tests.\n\n## Build ##\n\nTo build your own version of this container, run:\n\n    podman build -t debian9-ansible -f Containerfile .\n\n## Testing a role using Molecule ##\n\nIf you don't already have a role repository, you can initialize one using this [cookiecutter template](https://github.com/samdoran/cookiecutter-ansible-role).\n\n`molecule init template --url https://github.com/samdoran/cookiecutter-ansible-role`\n\nThen run `molecule test` to run the full test suite against the role.\n\nRun `molecule converge` to run the role against the test container but leave it running. This allows you to connect to the container using `molecule login` or just test running your role multiple times against an existing container.\n\nIf you already have a role being testing using Molecule, add this to the `platforms` section of your `molecule.yml` to use this image:\n\n```yaml\nplatforms:\n  - name: role-test\n    image: \"quay.io/samdoran/${MOLECULE_DISTRIBUTION:-debian9}-ansible:latest\"\n    command: ${MOLECULE_COMMAND:-\"\"}\n    volumes:\n      - /sys/fs/cgroup:/sys/fs/cgroup:ro\n    privileged: yes\n    pre_build_image: yes\n```\n\nThe important parts are `pre_build_image: yes` and the `image` name. Molecule allows you to use environment variables in the configuration file, which is very handy. This allows you to easily change the container that molecule uses for tests (among other things) simply by changing the enivorment variable.\n\n```\nenv MOLECULE_DISTRIBUTION=debian9 molecule test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamdoran%2Fdocker-debian9-ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamdoran%2Fdocker-debian9-ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamdoran%2Fdocker-debian9-ansible/lists"}