mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 20:08:41 +00:00
Fix docker test setup. (#957)
This commit is contained in:
parent
bd906faa4e
commit
dd91461a1f
@ -1,4 +1,9 @@
|
|||||||
---
|
---
|
||||||
|
- name: Import GPG key
|
||||||
|
rpm_key:
|
||||||
|
key: https://download.docker.com/linux/fedora/gpg
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Add repository
|
- name: Add repository
|
||||||
yum_repository:
|
yum_repository:
|
||||||
file: docker-ce
|
file: docker-ce
|
||||||
@ -7,7 +12,6 @@
|
|||||||
baseurl: https://download.docker.com/linux/fedora/{{ 31 if ansible_facts.distribution_major_version|int > 31 else '$releasever' }}/$basearch/stable
|
baseurl: https://download.docker.com/linux/fedora/{{ 31 if ansible_facts.distribution_major_version|int > 31 else '$releasever' }}/$basearch/stable
|
||||||
enabled: yes
|
enabled: yes
|
||||||
gpgcheck: yes
|
gpgcheck: yes
|
||||||
gpgkey: https://download.docker.com/linux/fedora/gpg
|
|
||||||
|
|
||||||
- name: Update cache
|
- name: Update cache
|
||||||
command: dnf makecache
|
command: dnf makecache
|
||||||
|
|||||||
@ -18,10 +18,14 @@
|
|||||||
args:
|
args:
|
||||||
warn: no
|
warn: no
|
||||||
|
|
||||||
- name: Add repository
|
# Docker broke their .repo file, so we set it up ourselves
|
||||||
command: yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
|
- name: Set-up repository
|
||||||
args:
|
yum_repository:
|
||||||
warn: no
|
name: docker-ce
|
||||||
|
description: docker-ce
|
||||||
|
baseurl: https://download.docker.com/linux/centos/{{ ansible_facts.distribution_major_version }}/$basearch/stable
|
||||||
|
gpgcheck: true
|
||||||
|
gpgkey: https://download.docker.com/linux/centos/gpg
|
||||||
|
|
||||||
- name: Update cache
|
- name: Update cache
|
||||||
command: yum -y makecache fast
|
command: yum -y makecache fast
|
||||||
|
|||||||
@ -12,10 +12,14 @@
|
|||||||
retries: 10
|
retries: 10
|
||||||
delay: 2
|
delay: 2
|
||||||
|
|
||||||
|
# Docker broke their .repo file, so we set it up ourselves
|
||||||
- name: Set-up repository
|
- name: Set-up repository
|
||||||
command: dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
|
yum_repository:
|
||||||
args:
|
name: docker-ce
|
||||||
warn: no
|
description: docker-ce
|
||||||
|
baseurl: https://download.docker.com/linux/centos/{{ ansible_facts.distribution_major_version }}/$basearch/stable
|
||||||
|
gpgcheck: true
|
||||||
|
gpgkey: https://download.docker.com/linux/centos/gpg
|
||||||
|
|
||||||
- name: Install docker
|
- name: Install docker
|
||||||
dnf:
|
dnf:
|
||||||
|
|||||||
@ -4,7 +4,6 @@ docker_prereq_packages:
|
|||||||
- lvm2
|
- lvm2
|
||||||
- libseccomp
|
- libseccomp
|
||||||
|
|
||||||
# Docker CE > 3:18.09.1 requires containerd.io >= 1.2.2-3 which is unavaible at this time
|
|
||||||
docker_packages:
|
docker_packages:
|
||||||
- docker-ce-3:18.09.1
|
- docker-ce-19.03.13
|
||||||
- docker-ce-cli-1:18.09.1 # otherwise 19.03.9 is installed, which won't work with docker daemon 18.09.1
|
- docker-ce-cli-19.03.13
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user