ソースを参照

Merge pull request #323 from lwilson/issue-315

Adding support for CentOS/RHEL8 install of AMD ROCm (#315)
John Lockman 3 年 前
コミット
62f7bf4d88
1 ファイル変更14 行追加2 行削除
  1. 14 2
      roles/common/tasks/amd.yml

+ 14 - 2
roles/common/tasks/amd.yml

@@ -13,7 +13,7 @@
 #  limitations under the License.
 ---
 
-- name: Add AMD ROCm repository
+- name: Add AMD ROCm repository for CentOS 7.x
   yum_repository:
     name: ROCm
     description: AMD GPU ROCm Repository
@@ -22,6 +22,18 @@
     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 CentOS/RockyLinux 8.x
+  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:
@@ -32,4 +44,4 @@
 
 - name: Reboot after installing GPU drivers
   reboot:
-  tags: install
+  tags: install