Docker for Linux.
Name | Version |
---|---|
EL | [7 8] |
Fedora | [all] |
Debian | [stretch buster bullseye] |
Ubuntu | [xenial bionic focal] |
Name | Description | Type | Default | Required |
---|---|---|---|---|
docker_compose_version | Docker Compose Version | str | 1.26.0 | no |
docker_service_enabled | Enable Docker Engine Service in Startup? | bool | true | no |
docker_compose_url | Download URL of Docker Compose | str | https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-Linux-x86_64 | no |
docker_yum_repo_enable_test | Enable test Docker Release State? | int | 0 | no |
docker_users | Users Who Will be Added to Docker Group | list | [] | no |
docker_daemon_options | Docker Daemon Options | dict | map[] | no |
docker_repo_url | Docker Repository URL | str | https://download.docker.com/linux | no |
docker_apt_release_channel | Release Status to Install | str | stable | no |
docker_apt_repository | Repository line to put in /etc/apt/sources.list | str | deb [arch={{ docker_apt_arch }}] {{ docker_repo_url }}/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} {{ docker_apt_release_channel }} | no |
docker_yum_repo_url | Docker Repository URL | str | {{ docker_repo_url }}/{{ (ansible_distribution == 'Fedora') | ternary('fedora','centos') }}/docker-{{ docker_edition }}.repo | no |
docker_apt_gpg_key | Docker Repository key URL | str | {{ docker_repo_url }}/{{ ansible_distribution | lower }}/gpg | no |
docker_package_state | Install Docker Engine? | str | present | no |
docker_install_compose | Install Docker Compose? | bool | true | no |
docker_yum_repo_enable_nightly | Enable nightly Docker Release State? | int | 0 | no |
docker_edition | Docker Edition | str | ce | no |
docker_compose_path | Path to Install Docker Compose Binary | str | /usr/local/bin/docker-compose | no |
docker_restart_handler_state | Restart the Service after installed? | str | restarted | no |
docker_apt_arch | Host Instance Architecture | str | amd64 | no |
docker_yum_gpg_key | Docker Repository key URL | str | {{ docker_repo_url }}/centos/gpg | no |
docker_package | Full Package Name | str | docker-{{ docker_edition }} | no |
docker_apt_ignore_key_error | Ignore even getting error while importing docker repository key? | bool | true | no |
docker_service_state | started | no |
---
- name: Converge
hosts: all
become: true
pre_tasks:
- name: Update apt cache.
apt: update_cache=yes cache_valid_time=600
when: ansible_os_family == 'Debian'
- name: Wait for systemd to complete initialization. # noqa 303
command: systemctl is-system-running
register: systemctl_status
until: >
'running' in systemctl_status.stdout or
'degraded' in systemctl_status.stdout
retries: 30
delay: 5
when: ansible_service_mgr == 'systemd'
changed_when: false
failed_when: systemctl_status.rc > 1
roles:
- role: geerlingguy.docker
- Encrypt all confidential variable on vault.
license (BSD, MIT)
This role was created by Midwestern Mac, LLC geerlingguy Team.