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 <aschoen@redhat.com>
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