{"id":21611710,"url":"https://github.com/ktsstudio/ansible-image","last_synced_at":"2026-01-04T01:41:03.902Z","repository":{"id":256925678,"uuid":"856814786","full_name":"ktsstudio/ansible-image","owner":"ktsstudio","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-13T10:17:11.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-01-24T20:16:57.919Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/ktsstudio.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}},"created_at":"2024-09-13T08:58:47.000Z","updated_at":"2024-09-13T10:12:02.000Z","dependencies_parsed_at":"2024-09-13T23:57:53.467Z","dependency_job_id":null,"html_url":"https://github.com/ktsstudio/ansible-image","commit_stats":null,"previous_names":["ktsstudio/ansible-image"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsstudio%2Fansible-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsstudio%2Fansible-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsstudio%2Fansible-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsstudio%2Fansible-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ktsstudio","download_url":"https://codeload.github.com/ktsstudio/ansible-image/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244257741,"owners_count":20424231,"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":[],"created_at":"2024-11-24T21:13:38.707Z","updated_at":"2026-01-04T01:41:03.875Z","avatar_url":"https://github.com/ktsstudio.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Docker Image for GitLab CI\n\nThis repository contains a Dockerfile for creating a Docker image with Ansible, used in GitLab CI.\n\n## Description\n\nThis Docker image is based on Alpine Linux 3.16.2 and includes:\n\n- Ansible 10.4.0 (current version)\n- Python 3\n- Additional tools: git, openssh, sshpass\n- Python libraries: boto3, requests, python-gitlab, python-dotenv\n\nThe image is optimized for use in CI/CD pipelines, particularly in GitLab CI.\n\n## Dockerfile\n\nMain stages of image building:\n\n1. Installing base dependencies\n2. Installing Ansible and required Python packages\n3. Clearing cache and removing temporary files to reduce image size\n\n## Usage\n\nTo build the image:\n\n```bash\ndocker build -t ansible-image .\n```\n\nTo run the container:\n\n```\ndocker run -it --rm \\\n  -v $(pwd):/ansible \\\n  -w /ansible \\\n  ansible-image ansible-playbook --syntax-check playbooks/*\n```\n\n## Important Notes\n1. The image has an empty entrypoint. In GitLab CI, you need to specify direct commands, such as:\n\n```bash\nansible-playbook --syntax-check playbooks/* -i inventory\n```\n\n2. For use in GitLab CI, it is recommended to set the path to the Ansible configuration file in the ANSIBLE_CONFIG variable:\n\n```yaml\nvariables:\n  ANSIBLE_CONFIG: \"/path/to/your/ansible.cfg\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktsstudio%2Fansible-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fktsstudio%2Fansible-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktsstudio%2Fansible-image/lists"}