docker: Add workaround for installing on Fedora 38

Currently docker-ce doesn't provide all required packages for Fedora 38
so also add Fedora 37 repository.
This commit is contained in:
Timo Makinen 2023-04-22 15:23:49 +00:00
parent f7c06e6379
commit 0b68353603

View file

@ -7,6 +7,18 @@
owner: root
group: "{{ ansible_wheel }}"
- name: Enable workaround repository for Fedora 38
ansible.builtin.yum_repository:
name: docker-ce-workaround
baseurl: https://download.docker.com/linux/fedora/37/$basearch/stable
description: Docker CE Stable - $basearch - F38 Workaround
gpgcheck: true
gpgkey: https://download.docker.com/linux/fedora/gpg
enabled: true
when:
- ansible_distribution == "Fedora"
- ansible_distribution_version|int > 37
- name: Install packages
ansible.builtin.package:
name: docker-ce