Fixed fedora modular repos activation for fcos (#6300)

* Enable fedora modular repos for fcos #6299

* Fixed fedora modular repos activation for fcos #6300
This commit is contained in:
Daniel Schade 2020-07-13 16:18:32 +02:00 committed by GitHub
parent abfa1636e4
commit b347aefd61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,15 +42,17 @@
- name: Enable modular repos for CRI-O
ini_file:
path: "/etc/yum.repos.d/{{ item }}.repo"
section: "{{ item }}"
path: "/etc/yum.repos.d/{{ item.repo }}.repo"
section: "{{ item.section }}"
option: enabled
value: 1
become: true
when: is_ostree
loop:
- "fedora-updates-modular"
- "fedora-modular"
- repo: "fedora-updates-modular"
section: "updates-modular"
- repo: "fedora-modular"
section: "fedora-modular"
- name: Enable CRI-O module
command: "dnf -y module enable cri-o:{{ crio_version }}"