A simple Ansible role to install Docker.
Variable | Default | Explanation |
---|---|---|
docker_edition |
ce |
ce for Community Edition or ee for Enterprise Edition |
docker_packages |
- "docker-[ce/ee]" |
Docker packages to install |
docker_log_max_size |
10m |
Sets the docker daemon configuration variable log-opts.max-size in /etc/docker/daemon.json to prevent the accumulation of large amounts of logs consuming storage. |
docker_log_max_file |
3 |
Sets the docker daemon configuration variable log-opts.max-file in /etc/docker/daemon.json to prevent the accumulation of large amounts of logs consuming storage. |
http_proxy |
"" |
Proxy for HTTP |
https_proxy |
"" |
Proxy for HTTPS |
no_proxy |
"" |
Proxy exception list |
Currently this role supports the following distributions:
- Ubuntu
- 20.04
- 22.04
- 22.10
- 23.04