From: Andrew Schoen Date: Fri, 15 May 2015 14:16:43 +0000 (-0500) Subject: Adds the ability to opt-out of enabling epel in the common role. X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c8cccb9c8b8c4dca00111004e4e8bb098ce32a53;p=ceph-cm-ansible.git Adds the ability to opt-out of enabling epel in the common role. Some of our labs should not be using epel. This allows us to use the enable_epel var to opt-out out of that per-lab by using the -secrets repos. Signed-off-by: Andrew Schoen --- diff --git a/roles/common/defaults/main.yml b/roles/common/defaults/main.yml index 9ea32405..45db8ee5 100644 --- a/roles/common/defaults/main.yml +++ b/roles/common/defaults/main.yml @@ -12,10 +12,13 @@ epel_repos: epel: name: "Extra Packages for Enterprise Linux" baseurl: "{{ epel_mirror_baseurl }}/{{ ansible_distribution_major_version }}/$basearch" - enabled: 1 + # ternary requires ansible >= 1.9 + enabled: "{{ enable_epel | ternary(1, 0) }}" gpgcheck: 0 epel-testing: name: "Extra Packages for Enterprise Linux - Testing" baseurl: "{{ epel_mirror_baseurl }}/testing/{{ ansible_distribution_major_version }}/$basearch" enabled: 0 gpgcheck: 0 + +enable_epel: true