1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix docker test setup. (#957)

This commit is contained in:
Felix Fontein 2020-09-24 23:49:46 +02:00 committed by GitHub
parent 77bf8b9a66
commit cf450e3a43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 11 deletions

View file

@ -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

View file

@ -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

View file

@ -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:

View file

@ -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