{"id":21816628,"url":"https://github.com/5monkeys/ansible-docker-role","last_synced_at":"2025-09-12T23:33:16.365Z","repository":{"id":46815144,"uuid":"70063389","full_name":"5monkeys/ansible-docker-role","owner":"5monkeys","description":"This role will setup and configure a docker installation","archived":false,"fork":false,"pushed_at":"2021-09-23T23:23:38.000Z","size":67,"stargazers_count":1,"open_issues_count":2,"forks_count":6,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-14T01:15:00.217Z","etag":null,"topics":["ansible","ansible-role","docker"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/5monkeys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-05T13:31:37.000Z","updated_at":"2020-06-16T07:46:45.000Z","dependencies_parsed_at":"2022-09-06T23:12:08.418Z","dependency_job_id":null,"html_url":"https://github.com/5monkeys/ansible-docker-role","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5monkeys%2Fansible-docker-role","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5monkeys%2Fansible-docker-role/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5monkeys%2Fansible-docker-role/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5monkeys%2Fansible-docker-role/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/5monkeys","download_url":"https://codeload.github.com/5monkeys/ansible-docker-role/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804824,"owners_count":21164135,"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":["ansible","ansible-role","docker"],"created_at":"2024-11-27T15:35:37.888Z","updated_at":"2025-04-14T01:15:10.405Z","avatar_url":"https://github.com/5monkeys.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Docker Role\n\n[![Build Status](https://travis-ci.com/5monkeys/ansible-docker-role.svg?branch=role-refactor)](https://travis-ci.com/5monkeys/ansible-docker-role)\n\n## Dependencies\n\n* Ansible \u003e= 2.7\n* pyOpenSSL\n\n## Setup\n\n* Install ansible and dependencies by running `pip install -r requirements.txt`.\n\n* Add this role to your playbook requirements.yml:\n\n```yaml\n- src: https://github.com/5monkeys/ansible-docker-role\n  name: docker\n``` \n\n* Update `ansible.cfg` to search for roles relative to playbook:\n\n```ini\nroles_path = ./roles\n```\n\n* Install playbook dependencies by running `ansible-galaxy install -r requirements.yml`.\n\n## Variables\n\n```yaml\n# What docker version to be installed (18.06, 5:18.09). Default is latest.\ndocker_ce_version:\n\n# If linux-image-extra packages should be installed. Needed for the AUFS storage driver.\ndocker_install_kernel_extras: false\n# Where to download TLS-certificates\ndocker_home: \".docker\"\n# Maps to docker -H\ndocker_hosts:\n  - \"unix://\"\n  - \"tcp://0.0.0.0:2376\"\n# What docker storage driver to use\ndocker_storage_driver: \"overlay2\"\n# What version of the docker python library to use\ndocker_python_version: \"4.0.1\"\n\n# If TLS should be enabled on the docker daemon and SSL-certificates generated\ndocker_use_tls: true\n# What to set as Organization in SSL-certificates\ndocker_tls_organization: \"Acme\"\n# Where to place certificates on host\ndocker_tls_path: \"/etc/docker/certs\"\n# When the client certificate should expire. \ndocker_tls_client_expires_after: \"+52w\"\n# The client certificate common name\ndocker_tls_client_common_name: \"client\"\n\n# If a docker swarm manager node should be initialized on the host\ndocker_enable_swarm: true\n# What version of the python openssl library to use\ndocker_py_openssl_version: \"19.0.0\"\n```\n\n## Example playbook\n```yaml\n- name: Setup docker\n  hosts: managers\n  become: true\n  become_user: root\n  roles:\n    - docker\n  vars:\n    docker_home: \"{{ inventory_dir }}/.certs/\"\n    docker_tls_organization: \"my_org\"\n    docker_ce_version: \"18.06\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5monkeys%2Fansible-docker-role","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F5monkeys%2Fansible-docker-role","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5monkeys%2Fansible-docker-role/lists"}