From b347aefd6185b7a43ff88e98072a3337ce45687f Mon Sep 17 00:00:00 2001 From: Daniel Schade Date: Mon, 13 Jul 2020 16:18:32 +0200 Subject: [PATCH] Fixed fedora modular repos activation for fcos (#6300) * Enable fedora modular repos for fcos #6299 * Fixed fedora modular repos activation for fcos #6300 --- roles/container-engine/cri-o/tasks/crio_repo.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/roles/container-engine/cri-o/tasks/crio_repo.yml b/roles/container-engine/cri-o/tasks/crio_repo.yml index 05bb62bf8..d5999b651 100644 --- a/roles/container-engine/cri-o/tasks/crio_repo.yml +++ b/roles/container-engine/cri-o/tasks/crio_repo.yml @@ -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 }}"