Skip to content

Commit

Permalink
common: Don't use baseurl for epel at all
Browse files Browse the repository at this point in the history
Despite having a mirrorlist present in the repo file, if contacting the baseurl fails, the yum transaction fails which causes our jobs to fail.  Let's try *just* using a mirrorlist.

See #542 (comment)

Signed-off-by: David Galloway <[email protected]>
  • Loading branch information
David Galloway committed Mar 13, 2020
1 parent 6dd8b5e commit 5edb072
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions roles/common/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ epel_mirror_baseurl: "http://dl.fedoraproject.org/pub/epel"
epel_repos:
epel:
name: "Extra Packages for Enterprise Linux"
baseurl: "{{ epel_mirror_baseurl }}/{{ ansible_distribution_major_version }}/{% if ansible_distribution_major_version == '8' %}Everything/{% endif %}$basearch"
mirrorlist: file:///etc/yum.repos.d/epel-mirrorlist
failovermethod: priority
# 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 }}/{% if ansible_distribution_major_version == '8' %}Everything/{% endif %}$basearch"
mirrorlist: file:///etc/yum.repos.d/epel-testing-mirrorlist
failovermethod: priority
enabled: 0
Expand Down

0 comments on commit 5edb072

Please sign in to comment.