From 83cec87f4cc23eef9c6441a3ef77cecd9d0ef7e2 Mon Sep 17 00:00:00 2001 From: Peter Slijkhuis Date: Mon, 25 Sep 2017 13:00:50 +0200 Subject: [PATCH] Make installation of EPEL optional --- roles/kubernetes/preinstall/defaults/main.yml | 1 + roles/kubernetes/preinstall/tasks/main.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/roles/kubernetes/preinstall/defaults/main.yml b/roles/kubernetes/preinstall/defaults/main.yml index 686c0e9bc..d0a971869 100644 --- a/roles/kubernetes/preinstall/defaults/main.yml +++ b/roles/kubernetes/preinstall/defaults/main.yml @@ -2,6 +2,7 @@ run_gitinfos: false epel_rpm_download_url: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" +epel_enabled: true common_required_pkgs: - python-httplib2 diff --git a/roles/kubernetes/preinstall/tasks/main.yml b/roles/kubernetes/preinstall/tasks/main.yml index 38a329781..91241f7be 100644 --- a/roles/kubernetes/preinstall/tasks/main.yml +++ b/roles/kubernetes/preinstall/tasks/main.yml @@ -114,6 +114,7 @@ - ansible_distribution in ["CentOS","RedHat"] - not is_atomic - epel_rpm_download_url != '' + - epel_enabled|bool register: epel_task_result until: epel_task_result|succeeded retries: 4