luisico.docker
Docker
====== Installing Docker
Docker is set up using packages from the Docker's CE Stable package repository. If you’re using CentOS, make sure to enable the centos-extra repository. For Red Hat, you also need to add centos-extra and include the CentOS GPG key. These additional requirements are not included in this setup. The latest version of Docker from the repository will be installed, unless you specify a different version with docker_version. Both the Docker engine and the Docker command line interface (CLI) will be the same version.
You can optionally enable user namespaces by setting the variable docker_user_namespace to yes (default is no). This might require updating the GRUB configuration and restarting the server. A standard user for remapping will also be added to /etc/subuid and /etc/subgid.
You can add a list of environment variables to Docker’s systemd service using docker_env.
Requirements
Check meta/main.yml for requirements.
Role Variables
Check defaults/main.yml for available role variables.
Dependencies
The centos-extra repository is necessary for both CentOS and Red Hat (as mentioned earlier).
Example Playbook
Here’s a simple example:
- hosts: servers
roles:
- docker
TODO
- Support for Docker EE
- Ensure the Docker service restarts after the firewalld service if it is active
- Install bash completion for docker-compose
License
This work is licensed under the MIT license.
Author Information
Luis Gracia while at EMBL-EBI:
ansible-galaxy install luisico.docker