51 lines
1.1 KiB
YAML
Raw Normal View History

---
# Install OpenCL drivers.
## Step 0/3: Package Dependencies ##
2021-02-11 18:08:57 -06:00
- name: AMDGPU | Install Dependencies
package:
name:
- dkms
- mesa-common-dev
state: present
## Step 1/3: Get Correct Kernel ##
## Step 2/3: Remove Incorrect Kernels ##
## Step 3/3: Install AMD PRO Driver ##
2021-02-11 12:12:52 -06:00
- name: AMDGPU | Check If Installed
shell: 'which amdgpu-pro-uninstall'
register: amdgpu_install
2021-02-11 12:47:00 -06:00
ignore_errors: yes
- name: AMDGPU | Debug Installation
2021-02-11 12:12:52 -06:00
debug:
var: amdgpu_install
2021-02-11 12:12:52 -06:00
- name: AMDGPU | Create Downloads Folder
2021-02-11 13:03:48 -06:00
shell: 'mkdir -p /root/Downloads'
when: amdgpu_install.failed
- name: AMDGPU | Download Driver
2021-02-11 13:03:48 -06:00
shell: 'scp ling@leet:InstallFiles/Drivers/amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz /root/Downloads/'
when: amdgpu_install.failed
- name: AMDGPU | Extract Tarball
2021-02-11 13:03:48 -06:00
shell: 'cd /root/Downloads; tar -xvf amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz'
when: amdgpu_install.failed
- name: AMDGPU | Install Pro Driver
2021-02-11 13:03:48 -06:00
shell: 'cd /root/Downloads/amdgpu-pro-20.45-1188099-ubuntu-20.04; ./amdgpu-pro-install -y --opencl=pal,legacy'
when: amdgpu_install.failed