From d97e9b9e500963406810e09dff8849bd37c251bb Mon Sep 17 00:00:00 2001 From: Florian Ruynat <16313165+floryut@users.noreply.github.com> Date: Mon, 7 Sep 2020 10:15:41 +0200 Subject: [PATCH] Fix oracle linux repo (#6627) --- roles/bootstrap-os/tasks/bootstrap-centos.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/roles/bootstrap-os/tasks/bootstrap-centos.yml b/roles/bootstrap-os/tasks/bootstrap-centos.yml index 5822c24a4..1e7ca3653 100644 --- a/roles/bootstrap-os/tasks/bootstrap-centos.yml +++ b/roles/bootstrap-os/tasks/bootstrap-centos.yml @@ -32,11 +32,12 @@ - name: Enable Oracle Linux repo ini_file: dest: "/etc/yum.repos.d/oracle-linux-ol{{ ansible_distribution_major_version }}.repo" - section: "{{ item }}" - option: enabled - value: "1" + section: "ol{{ ansible_distribution_major_version }}_addons" + option: "{{ item.option }}" + value: "{{ item.value }}" with_items: - - "ol{{ ansible_distribution_major_version }}_addons" + - { option: "enabled", value: "1" } + - { option: "baseurl", value: "http://yum.oracle.com/repo/OracleLinux/OL{{ ansible_distribution_major_version }}/addons/x86_64/" } when: - '"Oracle" in os_release.stdout' - (ansible_distribution_version | float) >= 7.6