{"id":20536629,"url":"https://github.com/xyhhx/ansible-alpine-docker-host","last_synced_at":"2026-04-18T17:36:29.735Z","repository":{"id":242023672,"uuid":"808477958","full_name":"xyhhx/ansible-alpine-docker-host","owner":"xyhhx","description":"ansible playbook for configuring an ansible vm as a docker host","archived":false,"fork":false,"pushed_at":"2024-05-31T06:50:22.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-06T19:44:43.605Z","etag":null,"topics":["alpine","ansible","automation","docker","docker-compose","hardening","iac","infrastructure-as-code","security"],"latest_commit_sha":null,"homepage":"https://git.sr.ht/~xyhhx/ansible-alpine-docker-host","language":"Jinja","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xyhhx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-05-31T06:44:50.000Z","updated_at":"2024-05-31T06:52:31.000Z","dependencies_parsed_at":"2024-05-31T07:57:40.604Z","dependency_job_id":"7c2bb6b9-eaf0-43fd-a438-5335093cb735","html_url":"https://github.com/xyhhx/ansible-alpine-docker-host","commit_stats":null,"previous_names":["xyhhx/ansible-alpine-docker-host"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xyhhx/ansible-alpine-docker-host","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyhhx%2Fansible-alpine-docker-host","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyhhx%2Fansible-alpine-docker-host/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyhhx%2Fansible-alpine-docker-host/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyhhx%2Fansible-alpine-docker-host/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyhhx","download_url":"https://codeload.github.com/xyhhx/ansible-alpine-docker-host/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyhhx%2Fansible-alpine-docker-host/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31978431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"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":["alpine","ansible","automation","docker","docker-compose","hardening","iac","infrastructure-as-code","security"],"created_at":"2024-11-16T00:37:21.649Z","updated_at":"2026-04-18T17:36:29.689Z","avatar_url":"https://github.com/xyhhx.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Alpine Linux Docker Host Playbook\n\nCanonical Source: https://git.sr.ht/~xyhhx/ansible-alpine-docker-host\n\nMirrors:\n[Github](https://github.com/xyhhx/ansible-alpine-docker-host) | [Codeberg](https://codeberg.org/xyhhx/ansible-kicksecure-docker-host)\n\n\u003c/div\u003e\n\nUse these playbooks to configure an Alpine Linux host to run Docker. It features some basic hardening.\n\nThis was designed to be used with a KVM/QEMU based virtual machine, but you can modify it quite easily for your needs.\n\n## Usage\n\n### Prerequisites\n\nYou need a Linux (or Unix) system with only a few things preinstalled:\n\n- [GNU Make](https://www.gnu.org/software/make/)\n- [Ansible](https://www.ansible.com)\n\n#### Prerequisites\n\n- Your Alpine host should have `python3` installed\n- You should have root access to the server\n\n### Set up\n\n1. Generate a random word for my privileged user's username (security through obscurity bla bla bla)\n1. Generate an Ed25519 SSH key, take note of the public key\n1. Set up the environment vars like so:\n\n    ```sh\n    cp .env.example .env\n    # Fill out the env vars\n    $EDITOR .env\n    ```\n\n1. Finally, install the required Ansible Galaxy collections\n\n    ```sh\n    make install-requirements\n    ```\n\n### Running the playbooks\n\nJust run the following commands and it should just set everything up for ya\n\n```sh\nmake playbook privileged-user # Only run once\nmake up\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyhhx%2Fansible-alpine-docker-host","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyhhx%2Fansible-alpine-docker-host","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyhhx%2Fansible-alpine-docker-host/lists"}