{"id":18990929,"url":"https://github.com/datadrivers/ansible-role-docker","last_synced_at":"2026-04-07T09:32:07.543Z","repository":{"id":103176231,"uuid":"123580390","full_name":"datadrivers/ansible-role-docker","owner":"datadrivers","description":"An Ansible role to deploy a docker environment on specific linux systems (with some extras like ctop, docker-compose, GPU support in docker for Nvidia graphic cards)","archived":false,"fork":false,"pushed_at":"2018-07-02T18:46:34.000Z","size":39,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-07T11:04:55.068Z","etag":null,"topics":["ansible","ansible-role","ctop","datadrivers","datadrivers-gmbh","docker","docker-compose","docker-gpu","gpu-support","nvidia-docker"],"latest_commit_sha":null,"homepage":"http://www.datadrivers.de","language":"Python","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/datadrivers.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":"2018-03-02T13:09:12.000Z","updated_at":"2019-03-22T13:33:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ac02dea-ddf7-471b-97a0-8127c2b685a0","html_url":"https://github.com/datadrivers/ansible-role-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/datadrivers/ansible-role-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadrivers%2Fansible-role-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadrivers%2Fansible-role-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadrivers%2Fansible-role-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadrivers%2Fansible-role-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datadrivers","download_url":"https://codeload.github.com/datadrivers/ansible-role-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datadrivers%2Fansible-role-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31508020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"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":["ansible","ansible-role","ctop","datadrivers","datadrivers-gmbh","docker","docker-compose","docker-gpu","gpu-support","nvidia-docker"],"created_at":"2024-11-08T17:12:10.050Z","updated_at":"2026-04-07T09:32:07.524Z","avatar_url":"https://github.com/datadrivers.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible role docker  [![Build Status](https://travis-ci.org/datadrivers/ansible-role-docker.png?branch=master)](https://travis-ci.org/datadrivers/ansible-role-docker)\n\nThis role installs and configures Docker, ctop, docker-compose, and Nvidia supported GPU-Docker (with Nvidia drivers and Nvidia CUDA). To manage the installation of all components, check the default values of the role variables.\n\n## Requirements\n\n* Ansible 2.1+\n* SSH access and sudo permissions\n* target host with installed linux OS with systemd\n* for nvidia-docker usage: a host with a compatible Nvidia graphic card\n* Internet access to get the packages and gpg keys\n\n## Supported platforms\n\n* CentOS 7\n* RedHat 7\n\n### Limitations\nThis role isn't support Mac and/or Windows systems. Nvidia-docker (Nvidia GPU support for docker) only supports linux based environment. The role overwrites the configuration file `/etc/docker/daemon.json`, if you install the nvidia-docker components.\n\n## Installation\n\nTo add this role to your ansible playbook, define or add it to the `requirements.yml`:\n\n```yaml\n# datadrivers_docker\n- src: https://github.com/datadrivers/ansible-role-docker.git\n  version: master\n  name: datadrivers_docker\n```\n\nAfter that, runs the ansible-galaxy install task:\n```bash\n$ ansible-galaxy install -v -r requirements.yml\n```\n\nOr if you want to install it directly in your ansible project:\n```bash\n$ ansible-galaxy install datadrivers.datadrivers_docker\n```\n\n## Role Variables\n\nPlease check `defaults/main.yml` for additional \u0026 exact variables and values, that can be overridden.\n\n| Variable                    | Description                         | Example or Defaults                 |\n|-----------------------------|-------------------------------------|---------------------------------|\n| `aws_docker_ansible_ssh_user`       | Ansible ssh user for the example playbook | `centos` |\n| `docker_repo_name` | Naming of the Docker repository | `docker-ce` |\n| `docker_repo_file_name` | Define the file name of the docker repository file  | `docker-ce` |\n| `docker_software_version` | Which software channel/branch of Docker wants to use (stable, edge, etc.)? | `stable` |\n| `docker_repo_description` | Define the repository description | `Docker CE` |\n| `docker_repo_base_url` | The Docker repository baseurl | `https://download.docker.com/linux/centos/7/$basearch/{{ docker_software_version }}` |\n| `docker_repo_gpg_key` | The Docker repository gpg key | `https://download.docker.com/linux/centos/gpg` |\n| `docker_repo_gpg_check` | Activate/Deactivate gpg check for this repository | `1` |\n| `docker_repo_enabled` | Activate the repository in YUM | `1` |\n| `docker_repo_ssl_verify` | Verify SSL/TLS certs | `yes` |\n| `docker_package_name` | The name of the install package | `docker-ce` |\n| `docker_install_python_package` | Install docker python package | `yes` |\n| `docker_http_proxy_active` | Configure Docker Proxy settings (systemd) | `false` |\n| `docker_http_proxy` | Docker http proxy settings for an existing company proxy | `http://1.2.3.4:8032` |\n| `docker_https_proxy` | Docker https proxy settings for an existing company proxy | `https://1.2.3.4:8032` |\n| `docker_no_proxy` | Docker no_proxy settings | `localhost,127.0.0.1,localaddress,.localdomain.com,169.254.169.254,169.254.170.2,/var/run/docker.sock` |\n| `docker_group_membership_active` | Add users to system group docker (unsafe!) | `false` |\n| `docker_group_membership_users` | Dict formatted list of users, who will get the docker group membership applied | `- centos` |\n| `docker_install_ctop` | Install ctop - a top-like tool for docker | `true` |\n| `docker_ctop_github_release_url` | ctop release site on Github (API) | `https://api.github.com/repos/bcicen/ctop/releases` |\n| `docker_ctop_destination_path` | Where to put in the downloaded tool ctop | `/usr/local/bin` |\n| `docker_ctop_ssl_verify` | Verify SSL/TLS for the installation process | `yes` |\n| `docker_install_docker_compose` | Install docker-compose to extend the normal Docker | `true` |\n| `docker_compose_github_release_url` | docker-compose release site on Github (API)  | `https://api.github.com/repos/docker/compose/releases` |\n| `docker_compose_destination_path` | Where to put in the downloaded tool docker-compose | `/usr/local/bin` |\n| `docker_compose_ssl_verify` | Verify SSL/TLS for the installation process | `yes` |\n| `docker_install_aws_iptables` | Apply AWS specific iptables policies to reach the internal metadata API interfaces on virtualisation host | `true` |\n| `docker_install_nvidia_docker`| Install Nvidia (CUDA) driver and nvidia-docker2 for GPU-Support | `false` |\n\n## Additional Information\n\nIn this role is a custom python library script called `iptables_raw.py` as Ansible module to apply the specific iptables policies. Check the file `library/iptables_raw.py` for more details.\nThe supported nvidia graphic cards are listed by the drivers tool `nvidia-detect`.\nFor more current information to nvidia-docker, see the [Github repository](https://github.com/NVIDIA/nvidia-docker).\n\n## Example Playbook\n\n```yaml\n# CentOS example\n- hosts: docker-host\n  user: centos\n  become: yes #optional\n  become_user: root #optional\n  gather_facts: true\n  roles:\n     - datadrivers_docker\n```\n\n## ToDo\n\nPlease check the file `TODO.md` for more details.\n\n## License\n\n* MIT license (check file `LICENSE` for more details)\n\n## Issue Tracker\n\nPlease use the [Github Repository Issue tracker](https://github.com/datadrivers/ansible-role-docker/issues) to report us bugs.\n\n## Contributions\n\nFeel free to clone the code, make a branch and to hack your stuff. After that make a pull request and we can check it. To get an overview of open tasks/todos - check the file `TODO.md`. We are open for improvements.\n\n\n## Author Information\n\n* Markus Rekkenbeil - [(Datadrivers GmbH)](http://www.datadrivers.de \"Datadrivers GmbH\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatadrivers%2Fansible-role-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatadrivers%2Fansible-role-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatadrivers%2Fansible-role-docker/lists"}