{"id":21682061,"url":"https://github.com/phansible/docker-ansible","last_synced_at":"2026-05-07T13:08:00.339Z","repository":{"id":77390336,"uuid":"58321286","full_name":"phansible/docker-ansible","owner":"phansible","description":"A docker ansible image to test Phansible roles","archived":false,"fork":false,"pushed_at":"2019-11-21T01:26:48.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T11:26:26.606Z","etag":null,"topics":["ansible","docker","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/phansible.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2016-05-08T16:34:57.000Z","updated_at":"2021-10-11T23:21:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"3602f3b6-ba3f-45a3-b335-e042e7cae454","html_url":"https://github.com/phansible/docker-ansible","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phansible%2Fdocker-ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phansible%2Fdocker-ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phansible%2Fdocker-ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phansible%2Fdocker-ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phansible","download_url":"https://codeload.github.com/phansible/docker-ansible/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244600670,"owners_count":20479304,"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","docker","hacktoberfest"],"created_at":"2024-11-25T15:32:57.254Z","updated_at":"2025-10-06T19:34:22.912Z","avatar_url":"https://github.com/phansible.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker ansible\n\nAnsible in a docker container\nThe main objective of this image is to help phansible developers to test their roles when developing\nIt can be used as a normal ansible image but we will not provide support for that use case\n\n## Testing a role\n\nThe image provides a bash entrypoint to help you testing the role.\nLet's use `role-apache` as our role and `ubuntu 14.04` as our environment for this example.\n\n### Syntax check\n\nIn order to check if the syntax of your role is correct:\n\n```\ndocker run --rm -it -v \"$PWD:/roles/role-apache\" -e \"ROLE=role-apache\" phansible/ansible:ubuntu1404 syntax\n```\n\nThis is the default command for the image, so you can also type\n\n```\ndocker run --rm -it -v \"$PWD:/roles/role-apache\" -e \"ROLE=role-apache\" phansible/ansible:ubuntu1404\n```\n\n### Run the provisioning\n\nTo test if the provision does not fail\n\n```\ndocker run --rm -it -v \"$PWD:/roles/role-apache\" -e \"ROLE=role-apache\" phansible/ansible:ubuntu1404 run\n```\n\n### Idempotency check\n\nFor us, idempotency is key in our roles. To ensure that your changes are idempotent do:\n\n```\ndocker run --rm -it -v \"$PWD:/roles/role-apache\" -e \"ROLE=role-apache\" phansible/ansible:ubuntu1404 idempotent\n```\n\n### Other testings\n\nIn some cases you may need to enter the container and execute a few checks manually. For that just run\n\n```\ndocker run --rm -it -v \"$PWD:/roles/role-apache\" -e \"ROLE=role-apache\" phansible/ansible:ubuntu1404 bash\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphansible%2Fdocker-ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphansible%2Fdocker-ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphansible%2Fdocker-ansible/lists"}