123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- ---
- - name: Add AMD ROCm repository for CentOS 7.x
- yum_repository:
- name: ROCm
- description: AMD GPU ROCm Repository
- baseurl: https://repo.radeon.com/rocm/yum/rpm
- gpgcheck: yes
- 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:
- name: rocm-dkms
- enablerepo: ROCm
- state: present
- tags: install
- - name: Reboot after installing GPU drivers
- reboot:
- tags: install
|