mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
31ba39cac4
* Add Fedora 32 to CI; drop Fedora 30 which is soon EOL. * Docker only supports Fedora up to 31; fortunately the 31 package seems to work for 32 too. * Also skip for Fedora 32, as it apparently has a similar problem to Fedora 31. ci_complete
22 lines
590 B
YAML
22 lines
590 B
YAML
---
|
|
- name: Add repository
|
|
yum_repository:
|
|
file: docker-ce
|
|
name: docker-ce-stable
|
|
description: Docker CE Stable - $basearch
|
|
baseurl: https://download.docker.com/linux/fedora/{{ 31 if ansible_facts.distribution_major_version|int > 31 else '$releasever' }}/$basearch/stable
|
|
enabled: yes
|
|
gpgcheck: yes
|
|
gpgkey: https://download.docker.com/linux/fedora/gpg
|
|
|
|
- name: Update cache
|
|
command: dnf makecache
|
|
args:
|
|
warn: no
|
|
|
|
- name: Install docker
|
|
dnf:
|
|
name: "{{ docker_packages }}"
|
|
state: present
|
|
enablerepo: docker-ce-test
|
|
notify: cleanup docker
|