Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common: use EPEL metalink #726

Merged
merged 1 commit into from
Apr 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.