{"id":29356895,"url":"https://github.com/cesnet/ansible-role-docker","last_synced_at":"2026-02-04T11:36:30.786Z","repository":{"id":241596817,"uuid":"807108576","full_name":"CESNET/ansible-role-docker","owner":"CESNET","description":"Ansible role for installing Docker","archived":false,"fork":false,"pushed_at":"2026-01-26T18:41:17.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2026-01-27T06:29:43.782Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/CESNET.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":"2024-05-28T13:52:44.000Z","updated_at":"2026-01-26T18:41:20.000Z","dependencies_parsed_at":"2025-11-11T17:02:14.192Z","dependency_job_id":null,"html_url":"https://github.com/CESNET/ansible-role-docker","commit_stats":null,"previous_names":["cesnet/ansible-role-docker"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/CESNET/ansible-role-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CESNET%2Fansible-role-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CESNET%2Fansible-role-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CESNET%2Fansible-role-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CESNET%2Fansible-role-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CESNET","download_url":"https://codeload.github.com/CESNET/ansible-role-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CESNET%2Fansible-role-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29082965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T03:31:03.593Z","status":"ssl_error","status_checked_at":"2026-02-04T03:29:50.742Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2025-07-09T05:40:43.237Z","updated_at":"2026-02-04T11:36:30.780Z","avatar_url":"https://github.com/CESNET.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-role-docker\nAnsible role for installing Docker. \n\nThe role installs a Docker daemon from Docker debian package repository. It also configures it in this way:\n- log driver is set to journald\n- IPv6 connectivity is enabled using\n  [IPv6 Unique Local Addresses](https://en.wikipedia.org/wiki/Unique_local_address) and\n  IPv6-to-IPv6 Network Address Translation (NAT66) analogous to IPv4 which is using \n  [IPv4 Private Addresses](https://en.wikipedia.org/wiki/Private_network) and NAT\n- sets Docker's MTU size to the system setting\n\nOptionally:\n- creates a local bridge network for containers \n- holds docker packages from upgrading\n- installs python3-docker package which is a requirement for Ansible docker modules\n- installs [Portainer](https://hub.docker.com/r/portainer/portainer-ce) web app running on port 9000\n- logs into container registries (provided by GitLab instances)\n- creates docker volumes\n- creates cron jobs\n\nRole Variables\n--------------\n\n* **docker_packages** - list of packages to install and optionally hold, default is docker-ce,docker-ce-cli and containerd.io\n* **docker_packages_hold** - whether to hold packages from upgrading, default is false\n* **docker_registries** - list of triples (url,username,password) for docker login, default is empty\n* **docker_local_network_create** - whether to create local bridge network, default is true\n* **docker_local_network_name** - network name, default is \"network\"\n* **docker_local_network_ipv6** - IPv6 connectivity of the local bridge network, default is true\n* **docker_local_network_ipam_config** - override to set specific IP range and gateway \n* **docker_portainer_install** - whether to install Portainer, default is false\n* **docker_portainer_admin_password** - administrator password, must be defined to install Portainer\n* **docker_portainer_fullchain_file** - path to certificate and its chain, must be defined to install Portainer\n* **docker_portainer_privkey_file** - path to certificate's private key, must be defined to install Portainer\n* **docker_portainer_admin_password_file** - path to file with admin password, default is /etc/portainer_admin_password.txt\n* **docker_portainer_admin_password_file_owner** - default is root\n* **docker_portainer_admin_password_file_group** - default is root\n* **docker_portainer_use_certbot_certificates** - whether to mount certbot's directories to Portainer, default is false\n* **docker_cron_jobs** - list of cron job definitions, default is empty\n* **docker_cron_jobs_force** - boolean whether to run cron jobs immediately, default is false\n* **docker_volumes** - list of volume names to create, default is empty\n\nExamples of Playbooks\n----------------\n\n```yaml\n- hosts: all \n  roles:\n     - role: cesnet.docker\n       vars:\n         docker_packages_hold: true\n         docker_registries:\n           - url: registry.gitlab.ics.muni.cz:443\n             username: gitlab-read-only-deploy-token-perun-all\n             password: BgdJHJ_gsmyqp3se5WRx\n         docker_local_network_name: perun_net\n         docker_portainer_install: true\n         docker_portainer_admin_password_file: \"{{ perun_certs_dir }}/portainer_admin_password.txt\"\n         docker_portainer_admin_password: \"{{ perun_portainer_admin_password }}\"\n         docker_portainer_admin_password_file_owner: root\n         docker_portainer_admin_password_file_group: perun\n         docker_portainer_use_certbot_certificates: \"{{ perun_use_certbot_certificates }}\"\n         docker_portainer_fullchain_file: \"{{ perun_certificate_fullchain_file }}\"\n         docker_portainer_privkey_file: \"{{ perun_certificate_key_file }}\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesnet%2Fansible-role-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcesnet%2Fansible-role-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesnet%2Fansible-role-docker/lists"}