{"id":13446521,"url":"https://github.com/Peco602/ansible-linux-docker","last_synced_at":"2025-03-21T06:31:24.975Z","repository":{"id":41276295,"uuid":"508985084","full_name":"Peco602/ansible-linux-docker","owner":"Peco602","description":"This Docker image allows to run Ansible from a Linux container. It supports Linux, Windows and MacOS target hosts.","archived":false,"fork":false,"pushed_at":"2023-06-21T09:34:02.000Z","size":8,"stargazers_count":22,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-28T09:54:42.509Z","etag":null,"topics":["ansible","ansible-playbook","container","docker"],"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/Peco602.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}},"created_at":"2022-06-30T07:53:44.000Z","updated_at":"2024-10-03T05:16:26.000Z","dependencies_parsed_at":"2024-04-10T02:56:05.878Z","dependency_job_id":"b71e973d-502c-4437-804e-cc19dd584f1d","html_url":"https://github.com/Peco602/ansible-linux-docker","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/Peco602%2Fansible-linux-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peco602%2Fansible-linux-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peco602%2Fansible-linux-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peco602%2Fansible-linux-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Peco602","download_url":"https://codeload.github.com/Peco602/ansible-linux-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244750781,"owners_count":20504146,"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","ansible-playbook","container","docker"],"created_at":"2024-07-31T05:00:54.061Z","updated_at":"2025-03-21T06:31:24.585Z","avatar_url":"https://github.com/Peco602.png","language":"Shell","readme":"![Test](https://github.com/Peco602/ansible-linux-docker/actions/workflows/test.yml/badge.svg)\r\n![Push](https://github.com/Peco602/ansible-linux-docker/actions/workflows/push.yml/badge.svg)\r\n[![Mentioned in awesome-docker](https://awesome.re/mentioned-badge.svg)](https://github.com/veggiemonk/awesome-docker)\r\n\r\n# Ansible Linux Docker image\r\n\r\nThis Docker image allows to run Ansible from a Linux container. It supports Linux, Windows and MacOS target hosts.\r\n\r\n\r\n## Build the image\r\n\r\n```bash\r\ndocker build -t ansible-linux-docker:latest .\r\n```\r\n\r\n## Run the container\r\n\r\nMount the `ansible` folder containing:\r\n\r\n- `ansible.cfg`: Ansible default configuration\r\n- `hosts`: Hosts inventory\r\n- `playbook.yml`: Ansible playbook\r\n\r\nand execute the `ansible-playbook` command:\r\n\r\n```bash\r\ndocker run --rm -v $PWD/ansible:/etc/ansible ansible-linux-docker:latest ansible-playbook /etc/ansible/playbook.yml -i /etc/ansible/hosts\r\n```\r\n\r\nMount the `ansible` folder and run the container interactively:\r\n\r\n```bash\r\ndocker run --rm -v $PWD/ansible:/etc/ansible -ti ansible-linux-docker:latest bash\r\n```\r\n\r\n## DockerHub\r\n\r\n- [peco602/ansible-linux-docker](https://hub.docker.com/r/peco602/ansible-linux-docker)\r\n\r\n\r\n## Authors\r\n\r\n- [Giovanni Pecoraro](https://www.peco602.com/)\r\n","funding_links":[],"categories":["Container Operations","Shell"],"sub_categories":["Orchestration"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPeco602%2Fansible-linux-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPeco602%2Fansible-linux-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPeco602%2Fansible-linux-docker/lists"}