Docker

An Ansible Role that installs Docker on RHEL/Centos 7 system.

Requirements

RHEL/Centos 7 system

Role Variables

Edition can be one of: 'ce' (Community Edition) or 'ee' (Enterprise Edition).

docker_edition: 'ce'
docker_package: "docker-{{ docker_edition }}"
docker_package_state: present

Used only for RedHat/CentOS.

docker_yum_repo_url: https://download.docker.com/linux/centos/docker-{{ docker_edition }}.repo
docker_yum_release_channel: stable

Docker compose

docker_compose_install: false
docker_compose_version: "1.23.0"
docker_compose_download_url: "https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-{{ ansible_facts['system'] }}-{{ ansible_facts['architecture'] }}"

Dependencies

N/A

Example Playbook

- hosts: servers
  roles:
     - docker

License

MIT

Author Information

This role was created by Lucien Stuker inspired by: https://github.com/geerlingguy/ansible-role-docker