https://github.com/asapdotid/ansible-role-docker_ce
This ansible role setup install and configure Docker CE on your system.
https://github.com/asapdotid/ansible-role-docker_ce
ansible ansible-playbook ansible-role docker docker-ce docker-compose
Last synced: 2 months ago
JSON representation
This ansible role setup install and configure Docker CE on your system.
- Host: GitHub
- URL: https://github.com/asapdotid/ansible-role-docker_ce
- Owner: asapdotid
- License: apache-2.0
- Created: 2022-10-20T12:35:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-31T12:10:15.000Z (over 2 years ago)
- Last Synced: 2025-05-18T04:36:12.212Z (about 1 year ago)
- Topics: ansible, ansible-playbook, ansible-role, docker, docker-ce, docker-compose
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

Ansible Role Docker CE
This ansible role setup install and configure Docker CE on your system.
Support Composer V2 and the new docker compose command.
## Requirements (`requrements.yml`)
```yaml
roles:
- name: asapdotid.docker_ce
src: git+https://github.com/asapdotid/ansible-role-docker_ce.git
scm: git
version: << change with latest tag >> #sample 1.0.0
```
## Role Variables
| Name | Default Value | Description |
| ---------------------------- | ------------- | ------------------------------- |
| `docker_ce_privileged_users` | `"[]"` | Docker users privilages. |
| `docker_log_driver` | `"json-file"` | The logs are formatted as JSON. |
| `docker_log_max_size` | `"10m"` | Logging max size. |
| `docker_log_max_file` | `"3"` | Logging max file. |
| `docker_extra_config` | `"[]"` | Additional daemon options. |
Docker document for logging configure [link](https://docs.docker.com/engine/logging/configure/)
Sample `docker_extra_config`:
```bash
docker_extra_config:
registry-mirrors:
- "https://mirror.gcr.io"
- "https://registry-1.docker.io"
data-root: "/var/lib/docker"
exec-opts:
- "native.cgroupdriver=systemd"
```
## Dependencies
None.
## Example Playbook
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
```yaml
---
- hosts: all
gather_facts: no
become: yes
vars:
docker_ce_privileged_users:
- vagrant
roles:
- role: asapdotid.docker_ce
```
## [License](#license)
Apache-2.0
## [Author Information](#author-information)
[JogjaScript](https://jogjascript.com)
This role was created in 2022 by [Asapdotid](https://github.com/asapdotid).