Skip to content
Merged
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
16 changes: 14 additions & 2 deletions roles/common/tasks/amd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -32,4 +44,4 @@

- name: Reboot after installing GPU drivers
reboot:
tags: install
tags: install