From 6bde4e3fb302c2b5033da5bc65a38277f04f4c0f Mon Sep 17 00:00:00 2001 From: Sander Cornelissen Date: Fri, 29 Jan 2021 12:59:41 +0100 Subject: [PATCH] Ensure when use_oracle_public_repo is set to false the public Oracle Linux yum repos are not set (#7228) (cherry picked from commit b70d986bfadee2590d7568d704127312af25c358) --- roles/bootstrap-os/tasks/bootstrap-centos.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/bootstrap-os/tasks/bootstrap-centos.yml b/roles/bootstrap-os/tasks/bootstrap-centos.yml index fecf32d02..2295d8a1e 100644 --- a/roles/bootstrap-os/tasks/bootstrap-centos.yml +++ b/roles/bootstrap-os/tasks/bootstrap-centos.yml @@ -51,6 +51,7 @@ - { option: "enabled", value: "1" } - { option: "baseurl", value: "http://yum.oracle.com/repo/OracleLinux/OL{{ ansible_distribution_major_version }}/addons/x86_64/" } when: + - use_oracle_public_repo|default(true) - '"Oracle" in os_release.stdout' - (ansible_distribution_version | float) >= 7.6 @@ -59,6 +60,7 @@ name: "oracle-epel-release-el{{ ansible_distribution_major_version }}" state: present when: + - use_oracle_public_repo|default(true) - '"Oracle" in os_release.stdout' - (ansible_distribution_version | float) >= 7.6