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:
parent
f7c06e6379
commit
0b68353603
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue