Skip to content

Commit

Permalink
Merge pull request #726 from ceph/epel-metalink
Browse files Browse the repository at this point in the history
common: use EPEL metalink
  • Loading branch information
akraitman authored Apr 13, 2023
2 parents 768122f + 6cb7fe0 commit d8ed5da
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 31 deletions.
4 changes: 2 additions & 2 deletions roles/common/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ epel_mirror_baseurl: "http://dl.fedoraproject.org/pub/epel"
epel_repos:
epel:
name: "Extra Packages for Enterprise Linux"
mirrorlist: file:///etc/yum.repos.d/epel-mirrorlist
metalink: "https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir"
# ternary requires ansible >= 1.9
enabled: "{{ enable_epel | ternary(1, 0) }}"
gpgcheck: 0
epel-testing:
name: "Extra Packages for Enterprise Linux - Testing"
mirrorlist: file:///etc/yum.repos.d/epel-testing-mirrorlist
metalink: "https://mirrors.fedoraproject.org/metalink?repo=testing-epel$releasever&arch=$basearch&infra=$infra&content=$contentdir"
enabled: 0
gpgcheck: 0

Expand Down
11 changes: 0 additions & 11 deletions roles/common/tasks/epel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,6 @@
register: epel_repo
with_dict: "{{ epel_repos }}"

- name: Configure local epel mirrorlists
template:
src: '{{ item }}'
dest: '/etc/yum.repos.d/{{ item }}'
owner: root
group: root
mode: 0644
with_items:
- epel-mirrorlist
- epel-testing-mirrorlist

- name: Clean yum cache
shell: yum clean all
when: epel_repo is defined and epel_repo is changed
9 changes: 0 additions & 9 deletions roles/common/templates/epel-mirrorlist

This file was deleted.

9 changes: 0 additions & 9 deletions roles/common/templates/epel-testing-mirrorlist

This file was deleted.

0 comments on commit d8ed5da

Please sign in to comment.