Skip to content

Commit

Permalink
Added aarch64 support for RHEL8/RHEL9
Browse files Browse the repository at this point in the history
  • Loading branch information
alfer-edb committed Oct 4, 2023
1 parent fcbbc49 commit 848d836
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions roles/setup_repo/tasks/PG_RedHat_rm_repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

- name: Remove PGDG GPG key for EL8
ansible.builtin.rpm_key:
key: "{{ pg_gpg_key_8 }}_{{ ansible_architecture }}"
key: "{{ lookup('ansible.builtin.vars', 'pg_gpg_key_8_' + ansible_architecture) }}"
state: absent
when:
- ansible_distribution_major_version == '8'
Expand All @@ -18,7 +18,7 @@

- name: Remove PGDG GPG key for EL9
ansible.builtin.rpm_key:
key: "{{ pg_gpg_key_9 }}_{{ ansible_architecture }}"
key: "{{ lookup('ansible.builtin.vars', 'pg_gpg_key_9_' + ansible_architecture) }}"
state: absent
when:
- ansible_distribution_major_version == '9'
Expand All @@ -33,6 +33,14 @@
- ansible_distribution_major_version == '8'
become: true

- name: Remove EPEL GPG key for EL9
ansible.builtin.rpm_key:
key: "{{ epel_gpg_key_9 }}"
state: absent
when:
- ansible_distribution_major_version == '9'
become: true

- name: Remove repo file
ansible.builtin.file:
path: "{{ item_file }}"
Expand All @@ -56,13 +64,13 @@
state: absent
become: true

- name: Remove dnf-plugins-core for EL8
- name: Remove dnf-plugins-core for EL8/EL9
ansible.builtin.package:
name: dnf-plugins-core
state: absent
become: true
when:
- ansible_distribution_major_version == '8'
- ansible_distribution_major_version in ['8', '9']

- name: Remove additional Redhat repositories
ansible.builtin.yum_repository:
Expand Down

0 comments on commit 848d836

Please sign in to comment.