{"id":18781547,"url":"https://github.com/devture/docker-ansible","last_synced_at":"2026-03-08T13:32:41.507Z","repository":{"id":75996749,"uuid":"179233846","full_name":"devture/docker-ansible","owner":"devture","description":"Docker image containing an up-to-date version of Ansible","archived":false,"fork":false,"pushed_at":"2025-08-02T04:13:36.000Z","size":25,"stargazers_count":6,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-02T06:53:56.123Z","etag":null,"topics":["ansible","docker","docker-image"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devture.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"liberapay":"s.pantaleev"}},"created_at":"2019-04-03T07:24:18.000Z","updated_at":"2025-08-02T04:13:40.000Z","dependencies_parsed_at":"2024-11-07T20:34:55.197Z","dependency_job_id":"a32e1276-1f93-49bd-baf9-9ead8a6b04a9","html_url":"https://github.com/devture/docker-ansible","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/devture/docker-ansible","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fdocker-ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fdocker-ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fdocker-ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fdocker-ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devture","download_url":"https://codeload.github.com/devture/docker-ansible/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devture%2Fdocker-ansible/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30258504,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T08:59:44.879Z","status":"ssl_error","status_checked_at":"2026-03-08T08:58:02.867Z","response_time":56,"last_error":"SSL_read: 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","docker","docker-image"],"created_at":"2024-11-07T20:32:30.113Z","updated_at":"2026-03-08T13:32:41.502Z","avatar_url":"https://github.com/devture.png","language":"Dockerfile","funding_links":["https://liberapay.com/s.pantaleev"],"categories":[],"sub_categories":[],"readme":"# Ansible Docker container image\n\nThe goal of this project is to provide an up-to-date version of [Ansible](https://www.ansible.com/) and [agru](https://github.com/etkecc/agru) that people can run in a ([Docker](https://www.docker.com/)) container.\n\nThis project was created for [spantaleev/matrix-docker-ansible-deploy](https://github.com/spantaleev/matrix-docker-ansible-deploy) (see [Using Ansible via Docker](https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/ansible.md#using-ansible-via-docker)).\n\n\n## Building\n\nIf you need to build it yourself, instead of using the [ghcr.io/devture/ansible](https://github.com/devture/docker-ansible/pkgs/container/ansible) image that we publish to Docker Hub.\n\n```bash\ndocker build -t ghcr.io/devture/ansible:latest -f Dockerfile .\n```\n\n## Usage\n\n\n### Usage against a remote SSH host\n\nIf you can connect to the remote server using SSH, use the following command:\n\n```bash\ncd /some/ansible-project\n\ndocker run\n-it \\\n--rm \\\n-w /work \\\n--mount type=bind,src=`pwd`,dst=/work \\\n--mount type=bind,src$HOME/.ssh/id_ed25519,dst=/root/.ssh/id_ed25519,ro \\\n--entrypoint=/bin/sh \\\nghcr.io/devture/ansible:latest\n```\n\nYou can execute `ansible-playbook` commands as per normal now.\n\n\n### Usage against the same host\n\nIf you'd like to run Ansible in a container on the server, and then target that same server from inside the container, use this:\n\n```bash\ncd /some/ansible-project\n\ndocker run\n-it \\\n--rm \\\n--privileged \\\n--pid=host \\\n-w /work \\\n--mount type=bind,src=`pwd`,dst=/work \\\n--entrypoint=/bin/sh \\\nghcr.io/devture/ansible:latest\n```\n\nWhen invoking the `ansible-playbook` commands, ensure that:\n\n- you *either* add `--connection=community.docker.nsenter` to the command (e.g. `ansible-playbook --connection=community.docker.nsenter ...`)\n\n- *or* that you've set `ansible_connection=community.docker.nsenter` for each host that needs it in your Ansible `hosts` file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevture%2Fdocker-ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevture%2Fdocker-ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevture%2Fdocker-ansible/lists"}