{"id":18363439,"url":"https://github.com/stuttgart-things/install-configure-docker","last_synced_at":"2026-04-02T22:01:51.250Z","repository":{"id":183176521,"uuid":"650587706","full_name":"stuttgart-things/install-configure-docker","owner":"stuttgart-things","description":"install configure docker (compose) and or kind","archived":false,"fork":false,"pushed_at":"2026-03-27T14:40:11.000Z","size":111,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-28T00:32:37.765Z","etag":null,"topics":["ansible","containerization","containers","docker","kind","linux"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stuttgart-things.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-07T11:38:33.000Z","updated_at":"2026-03-27T14:38:43.000Z","dependencies_parsed_at":"2024-12-24T00:13:22.678Z","dependency_job_id":"2cb06075-b5c9-48af-a433-75d6fc2d54e2","html_url":"https://github.com/stuttgart-things/install-configure-docker","commit_stats":null,"previous_names":["stuttgart-things/install-configure-docker"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/stuttgart-things/install-configure-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Finstall-configure-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Finstall-configure-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Finstall-configure-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Finstall-configure-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuttgart-things","download_url":"https://codeload.github.com/stuttgart-things/install-configure-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Finstall-configure-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31317831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T21:35:00.834Z","status":"ssl_error","status_checked_at":"2026-04-02T21:34:59.806Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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","containerization","containers","docker","kind","linux"],"created_at":"2024-11-05T23:06:31.453Z","updated_at":"2026-04-02T22:01:51.199Z","avatar_url":"https://github.com/stuttgart-things.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"stuttgart-things/install-configure-docker\n=========================================\n\ndeployment and configuration of docker (-compose).\n\n\u003cdetails\u003e\u003csummary\u003eVARIABLES\u003c/summary\u003e\n\n* `set_proxy` - Set on true to generate http-proxy.conf (default:false)\n* `add_registry_mirrors` - Set on true to Configure daemon.json (default:false)\n* `login_into_private_registry` - Set on true to install python packages and to log into a private registry (default:false)\n* `install_kind` - Set on true to install Kind and Kubectl (default:false)\n* `docker_install_compose` - Set on true/false to (not) install docker compose\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eROLE INSTALLATION\u003c/summary\u003e\n\ninstalls role and all of it's dependencies w/:\n\n```bash\ncat \u003c\u003cEOF \u003e /tmp/requirements.yaml\n---\nroles:\n- src: https://github.com/stuttgart-things/install-configure-docker.git\n  version: 2024-04-29\n  scm: git\n- src: https://github.com/stuttgart-things/install-requirements.git\n  scm: git\n\ncollections:\n- name: community.general\n  version: 8.6.0\n- name: community.docker\n  version: 3.9.0\nEOF\n\nansible-galaxy install -r /tmp/requirements.yaml --force\nansible-galaxy collection install -r /tmp/requirements.yaml --force\nrm -rf /tmp/requirements.yaml\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eEXAMPLE INVENTORY\u003c/summary\u003e\n\n```bash\ncat \u003c\u003cEOF \u003e inventory\n[appserver]\n1.2.3.4 ansible_user=sthings\nEOF\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eEXAMPLE PLAYBOOK - BASIC DOCKER AND DOCKER COMPOSE INSTALLATION\u003c/summary\u003e\n\n```yaml\ncat \u003c\u003cEOF \u003e install-configure-docker.yaml\n---\n- hosts: \"{{ target_host | default('all') }}\"\n  become: true\n\n  vars:\n    docker_install_compose: true\n    docker_version: '' # leave empty for latest version or set e.g. '=5:23.0.6-1~ubuntu.23.04~lunar'\n\n  roles:\n    - install-configure-docker\nEOF\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eEXAMPLE PLAYBOOK - DOCKER INSTALLATION + REGISTRY LOGIN AND MIRROR\u003c/summary\u003e\n\n```yaml\ncat \u003c\u003cEOF \u003e install-configure-docker.yaml\n---\n- hosts: \"{{ target_host | default('all') }}\"\n  become: true\n\n  vars:\n    docker_install_compose: true\n    docker_version: '' # leave empty for latest version or set e.g. '=5:23.0.6-1~ubuntu.23.04~lunar'\n\n    add_registry_mirrors: true\n    registry_mirrors:\n      - https://harbor.tiab.labda.sva.de\n      - https://harbor.labul.sva.de\n\n    vault_url: \"{{ lookup('env','VAULT_URL') }}\"\n    vault_token: \"{{ lookup('env','VAULT_TOKEN') }}\"\n\n    login_into_private_registry: true\n    private_registry_url: \"{{ lookup('community.hashi_vault.hashi_vault', 'secret=harbor/data/harbor validate_certs=false token={{vault_token}} url={{vault_url}}')['url'] }}\"\n    private_registry_user: \"{{ lookup('community.hashi_vault.hashi_vault', 'secret=harbor/data/harbor validate_certs=false token={{vault_token}} url={{vault_url}}')['user'] }}\"\n    private_registry_password: \"{{ lookup('community.hashi_vault.hashi_vault', 'secret=harbor/data/harbor validate_certs=false token={{vault_token}} url={{vault_url}}')['password'] }}\"\n\n  roles:\n    - install-configure-docker\nEOF\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eEXAMPLE PLAYBOOK - DOCKER INSTALLATION + KIND AND KUBECTL\u003c/summary\u003e\n\n```yaml\ncat \u003c\u003cEOF \u003e install-configure-docker.yaml\n---\n- hosts: \"{{ target_host | default('all') }}\"\n  become: true\n\n  vars:\n    docker_install_compose: true\n    install_kind: true\n\n    ansible_user: sthings\n    kind_version: 0.27.0\n    kind_cluster_name: bibi1\n    # ALSO KIND KUBERNETES VERSION\n    kubectl_version: 1.32.3\n    create_kind_cluster: true\n    count_worker_nodes: 3\n    count_controlplane_nodes: 1\n    enable_ingress_ports: true\n    enable_host_paths: true\n\n  roles:\n    - install-configure-docker\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eEXAMPLE EXECUTION\u003c/summary\u003e\n\n```bash\nansible-playbook -i inventory install-configure-docker.yaml -vv\n```\n\n\u003c/details\u003e\n\n## DEV-TASKS\n\n```bash\ntask: Available tasks for this project:\n* branch:           Create branch from main\n* commit:           Commit + push code into branch\n* setup-venv:       Setup python virtual environment\n```\n\n### TESTING\n\n```bash\ntask setup-venv\nsource ./.venv/bin/activate\ntask setup-molecule\ntask run-molecule\n\n# deactivate\n#rm -rf ./.venv/\n```\n\n## License\n\u003cdetails\u003e\u003csummary\u003eLICENSE\u003c/summary\u003e\n\nCopyright 2020 patrick hermann.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\u003c/details\u003e\n\nRole history\n----------------\n| date  | who | changelog |\n|---|---|---|\n|2023-29-04   | Andre Ebert | Added Ansible- and Yamllint with skip rules and collection release workflow\n|2021-24-02   | Patrick Hermann | Added support for registry mirrors and login to private registry\n|2020-10-10   | Patrick Hermann | Updated for using of ansible collections, fixed role structure, added to be stable version\n|2020-04-01  | Patrick Hermann | intial commit for this role in codehub\n\nAuthor Information\n------------------\n\n```yaml\nAndre Ebert (andre.ebert@sva.de); 04/2023\n\nPatrick Hermann (patrick.hermann@sva.de); 04/2020\n```\n\n(This role was created in 2017 by Jeff Geerling, author of Ansible for DevOps - adopted to be used in multiple stuttgart-things projects by Patrick Hermann in 2020.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Finstall-configure-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuttgart-things%2Finstall-configure-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Finstall-configure-docker/lists"}