{"id":16779921,"url":"https://github.com/haxorof/docker-ansible","last_synced_at":"2025-09-03T13:38:42.776Z","repository":{"id":36978412,"uuid":"173370946","full_name":"haxorof/docker-ansible","owner":"haxorof","description":"Ansible + additions in a container","archived":false,"fork":false,"pushed_at":"2025-08-26T22:59:06.000Z","size":326,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-27T07:37:14.074Z","etag":null,"topics":["ansible","container","docker","docker-client"],"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/haxorof.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":"2019-03-01T21:34:05.000Z","updated_at":"2025-08-26T22:59:04.000Z","dependencies_parsed_at":"2023-11-08T07:54:24.660Z","dependency_job_id":"39d113be-f162-4852-a27c-783776aa8a6d","html_url":"https://github.com/haxorof/docker-ansible","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/haxorof/docker-ansible","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxorof%2Fdocker-ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxorof%2Fdocker-ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxorof%2Fdocker-ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxorof%2Fdocker-ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haxorof","download_url":"https://codeload.github.com/haxorof/docker-ansible/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxorof%2Fdocker-ansible/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273453282,"owners_count":25108470,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"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","container","docker","docker-client"],"created_at":"2024-10-13T07:33:01.768Z","updated_at":"2025-09-03T13:38:42.745Z","avatar_url":"https://github.com/haxorof.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible + additions\n\n[![Docker Pulls](https://img.shields.io/docker/pulls/haxorof/ansible)](https://hub.docker.com/r/haxorof/ansible/)\n[![License](https://img.shields.io/github/license/haxorof/docker-ansible)](https://hub.docker.com/r/haxorof/ansible/)\n[![CI](https://github.com/haxorof/docker-ansible/workflows/CI/badge.svg)](https://github.com/haxorof/docker-ansible/actions?query=workflow%3ACI)\n\nAnsible with additions.\n\nIf you find bugs or got improvements of the container, feel free to submit it [here](https://github.com/haxorof/docker-ansible/issues).\n\nThis repos stop supporting versions as it gets EOL according to [Ansible - Releases and maintenance](https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html).\n\n## Simple Tags\n\n- `v11-alpine`\n- `v11-almalinux`\n- `v11-ubuntu`\n- `v10-alpine`\n- `v10-almalinux`\n- `v10-ubuntu`\n\n## Shared Tags\n\n- `v11`, `latest-alpine`, `latest`\n  - `v11-alpine`\n- `latest-almalinux`\n  - `v11-almalinux`\n- `latest-ubuntu`\n  - `v11-ubuntu`\n\n## Additions\n\n### Users/Groups\n\nContainer will run as user `ansible-10000` by default. However, when you build your own image based on this `root` will be set and you need to set it back yourself to `ansible-10000` if you want.\n\n- `ansible-1000`\n  - uid=1000\n  - gid=1000\n- `ansible-1001`\n  - uid=1001\n  - gid=1001\n- `ansible-10000`\n  - uid=10000\n  - gid=10000\n\n**Note!** All ansible users will have sudo rights. This is for convenience since some roles etc are not that well implemented.\n\n### Python libraries\n\n- jmespath\n- pyvmomi (for VMWare modules)\n- netaddr\n\n### Packages/Tools\n\n- docker-cli\n- git\n- openssh\n- sudo\n- gosu\n\n## How to use this container\n\nBelow assume a `playbook.yml` file is located in current directory:\n\n```console\n# docker run --rm -v ${PWD}:/mnt haxorof/ansible\n```\n\nTo override the default command set you can just add your own arguments after the images name:\n\n```console\n# docker run --rm -v ${PWD}:/mnt haxorof/ansible ansible -m setup -c local localhost\n```\n\n## How to use Docker CLI with Ansible to target Python container\n\nStart a Python container in a terminal:\n\n```console\n# docker run -it --rm --name=target python sh\n```\n\nIn a second terminal run the following which will do an Ansible ping to that Python container:\n\n```console\n# docker run --rm -v /var/run/docker.sock:/var/run/docker.sock haxorof/ansible sh -c \"echo 'target ansible_connection=docker' \u003e hosts \u0026\u0026 ansible -m ping -i hosts all\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaxorof%2Fdocker-ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaxorof%2Fdocker-ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaxorof%2Fdocker-ansible/lists"}