Commit 38c1471e authored by ∞'s avatar 💻

CentOS support

parent 8eb3bfb2
Pipeline #6377 failed with stage
in 1 minute and 46 seconds
......@@ -13,7 +13,12 @@
# ExecStart=
# ExecStart=/usr/bin/dockerd -H fd:// --iptables=false --ip-masq=false
- name: add docker repository
- name: add docker repository (centos)
shell: dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo && dnf install --nobest -y docker-ce
when: ansible_distribution == 'CentOS'
- name: add docker repository (apt)
when: ansible_distribution != 'CentOS'
include_role:
name: yourlabs.aptrepo
vars:
......@@ -21,7 +26,8 @@
key_url: https://download.docker.com/linux/ubuntu/gpg
repo: deb [arch=amd64] https://download.docker.com/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release|lower }} edge
- name: Install docker-ce
- name: Install docker-ce (non-centos)
when: ansible_distribution != 'CentOS'
package:
name: '{{ docker_package|default("docker-ce" if ansible_os_family == "Debian" else "docker") }}'
state: present
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment