Adding support for CentOS/RHEL8 install of AMD ROCm
# limitations under the License.
---
-- name: Add AMD ROCm repository
+- name: Add AMD ROCm repository for RHEL/CentOS 7
yum_repository:
name: ROCm
description: AMD GPU ROCm Repository
gpgkey: https://repo.radeon.com/rocm/rocm.gpg.key
enabled: yes
tags: install
+ when: ansible_facts['distribution_major_version'] == "7"
+
+- name: Add AMD ROCm repository for RHEL/CentOS/Rocky 8
+ yum_repository:
+ name: ROCm
+ description: AMD GPU ROCm Repository
+ baseurl: https://repo.radeon.com/rocm/centos8/rpm
+ gpgcheck: yes
+ gpgkey: https://repo.radeon.com/rocm/rocm.gpg.key
+ enabled: yes
+ tags: install
+ when: ansible_facts['distribution_major_version'] == "8"
- name: Install AMD ROCm drivers
package:
