diff --git a/tasks/main.yml b/tasks/main.yml index ccfbe3a..8b43535 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -48,21 +48,15 @@ - epel_specify_mirror - ansible_os_family == "RedHat" and ansible_distribution_major_version == "7" -- name: Configure Repository Settings (EL8) +- name: Configure Repository Settings (EL8+)) template: src: "{{ item.src }}" dest: "{{ item.dest }}" with_items: - - src: el8-epel.repo.j2 + - src: epel.repo.j2 dest: /etc/yum.repos.d/epel.repo - - src: el8-epel-modular.repo.j2 - dest: /etc/yum.repos.d/epel-modular.repo - - src: el8-epel-playground.repo.j2 - dest: /etc/yum.repos.d/epel-playground.repo - - src: el8-epel-testing.repo.j2 + - src: epel-testing.repo.j2 dest: /etc/yum.repos.d/epel-testing.repo - - src: el8-epel-testing-modular.repo.j2 - dest: /etc/yum.repos.d/epel-testing-modular.repo when: - epel_specify_mirror - ansible_os_family == "RedHat" and ansible_distribution_major_version == "8" \ No newline at end of file diff --git a/templates/epel-testing.repo.j2 b/templates/epel-testing.repo.j2 new file mode 100644 index 0000000..21b65c6 --- /dev/null +++ b/templates/epel-testing.repo.j2 @@ -0,0 +1,33 @@ +[epel-testing] +name=Extra Packages for Enterprise Linux $releasever - Testing - $basearch +{% if epel_specify_mirror is sameas true %} +baseurl={{ epel_mirror_url }}/testing/$releasever/Everything/$basearch +{% else %} +metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-epel$releasever&arch=$basearch&infra=$infra&content=$contentdir +{% endif %} +enabled=0 +gpgcheck=1 +countme=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version}} + +[epel-testing-debuginfo] +name=Extra Packages for Enterprise Linux $releasever - Testing - $basearch - Debug +{% if epel_specify_mirror is sameas true %} +baseurl={{ epel_mirror_url }}/testing/$releasever/Everything/$basearch/debug +{% else %} +metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel$releasever&arch=$basearch&infra=$infra&content=$contentdir +{% endif %} +enabled=0 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version}} +gpgcheck=1 + +[epel-testing-source] +name=Extra Packages for Enterprise Linux $releasever - Testing - $basearch - Source +{% if epel_specify_mirror is sameas true %} +baseurl={{ epel_mirror_url }}/testing/$releasever/Everything/SRPMS +{% else %} +metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel$releasever&arch=$basearch&infra=$infra&content=$contentdir +{% endif %} +enabled=0 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version}} +gpgcheck=1 \ No newline at end of file diff --git a/templates/epel.repo.j2 b/templates/epel.repo.j2 new file mode 100644 index 0000000..6847e12 --- /dev/null +++ b/templates/epel.repo.j2 @@ -0,0 +1,33 @@ +[epel] +name=Extra Packages for Enterprise Linux $releasever - $basearch +{% if epel_specify_mirror is sameas true %} +baseurl={{ epel_mirror_url }}/$releasever/Everything/$basearch +{% else %} +metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir +{% endif %} +enabled=1 +gpgcheck=1 +countme=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }} + +[epel-debuginfo] +name=Extra Packages for Enterprise Linux $releasever - $basearch - Debug +{% if epel_specify_mirror is sameas true %} +baseurl={{ epel_mirror_url }}/$releasever/Everything/$basearch/debug +{% else %} +metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-$releasever&arch=$basearch&infra=$infra&content=$contentdir +{% endif %} +enabled=0 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }} +gpgcheck=1 + +[epel-source] +name=Extra Packages for Enterprise Linux $releasever - $basearch - Source +{% if epel_specify_mirror %} +baseurl={{ epel_mirror_url }}/$releasever/Everything/SRPMS +{% else %} +metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir +{% endif %} +enabled=0 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }} +gpgcheck=1 \ No newline at end of file