https://github.com/grycap/ansible-role-docker
Ansible Role to install Docker Engine
https://github.com/grycap/ansible-role-docker
Last synced: 5 months ago
JSON representation
Ansible Role to install Docker Engine
- Host: GitHub
- URL: https://github.com/grycap/ansible-role-docker
- Owner: grycap
- License: apache-2.0
- Created: 2016-11-24T17:38:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-09-30T14:55:11.000Z (9 months ago)
- Last Synced: 2025-09-30T16:33:51.239Z (9 months ago)
- Homepage:
- Size: 188 KB
- Stars: 3
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.apache.org/licenses/LICENSE-2.0)
[](https://github.com/grycap/ansible-role-docker/actions?query=workflow%3ACI)
Docker Engine Role
===================
Install Docker Engine (recipe for EC3)
Role Variables
--------------
The variables that can be passed to this role and a brief description about them are as follows.
docker_mirror_protocol: "http"
docker_mirror_port: 5000
docker_opts: ""
docker_channel: "stable"
docker_version: "latest"
# Docker comaptible versions that if are installed docker will not be reinstalled
# ['17.03.', '18.06.', '18.09.', '19.03.']
docker_compatible_versions: []
docker_install_criu: true
docker_install_pip: true
docker_compose_version: "1.25.5"
docker_config_values: {}
docker_nvidia_support: false
docker_nvidia_options:
default-runtime: nvidia
runtimes:
nvidia:
path: /usr/bin/nvidia-container-runtime
runtimeArgs: []
# Installs containerd only, not full docker
docker_containerd_only: false
docker_containerd_version: "latest"
# Set the version of the command nerdctl to install
docker_nerdctl_version: 1.0.0
# Install containerd CNI plugins
docker_containerd_install_cni: false
docker_containerd_cni_version: '1.1.1'
# Set the root path for containerd
docker_containerd_root: ""
Example Playbook
----------------
```
- hosts: server
roles:
- { role: 'grycap.docker' }
```
```
- hosts: client
roles:
- { role: 'grycap.docker' }
```
Contributing to the role
========================
In order to keep the code clean, pushing changes to the master branch has been disabled. If you want to contribute, you have to create a branch, upload your changes and then create a pull request.
Thanks