Install AMDGPU-PRO every run.
This commit is contained in:
parent
b0efe38069
commit
711a88dd8d
@ -46,7 +46,7 @@
|
||||
# ignore_errors: yes
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Check If Pro Driver Installed
|
||||
shell: 'which amdgpu-pro-uninstall'
|
||||
shell: 'amdgpu-pro-uninstall -y'
|
||||
register: amdgpu_install
|
||||
ignore_errors: yes
|
||||
|
||||
@ -122,7 +122,7 @@
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Update + Clean System
|
||||
shell: "apt update; apt dist-upgrade -y; apt autoremove -y"
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0" and "1" == "0"
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
||||
|
||||
# This is to ensure we can test adding `apt install --install-recommends linux-generic` later
|
||||
- name: Miner | Driver | AMDGPU | Boot Default Kernel
|
||||
@ -132,11 +132,11 @@
|
||||
line: 'GRUB_DEFAULT=0'
|
||||
state: present
|
||||
backup: yes
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0" and "1" == "0"
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Update GRUB
|
||||
shell: update-grub
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0" and "1" == "0"
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Prepare Cron Job To SCM
|
||||
cron:
|
||||
@ -146,7 +146,7 @@
|
||||
job: "{{ amdgpu_cron_cmd }}"
|
||||
state: present
|
||||
disabled: no
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0" and "1" == "0"
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
||||
|
||||
# This reboot may not be necessary.
|
||||
#- name: Miner | Driver | AMDGPU | Reboot To Ensure GA Is 0
|
||||
@ -162,11 +162,11 @@
|
||||
## Step 3/3: Install AMD PRO Driver ##
|
||||
- name: Miner | Driver | AMDGPU | Download Driver
|
||||
shell: 'scp ling@leet:InstallFiles/Drivers/amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz {{ root_home.stdout }}/Downloads/'
|
||||
when: amdgpu_install.failed
|
||||
when: amdgpu_install.failed or "1" == "1"
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Extract Tarball
|
||||
shell: 'cd {{ root_home.stdout }}/Downloads; tar -xvf amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz'
|
||||
when: amdgpu_install.failed
|
||||
when: amdgpu_install.failed or "1" == "1"
|
||||
|
||||
## Only one driver set can exist at a time! ##
|
||||
#- name: Miner | Driver | AMDGPU | Install AMDGPU All Driver
|
||||
@ -175,7 +175,7 @@
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Install AMDGPU-Pro Driver
|
||||
shell: 'cd {{ root_home.stdout }}/Downloads/amdgpu-pro-20.45-1188099-ubuntu-20.04; ./amdgpu-pro-install -y --opencl=pal,legacy'
|
||||
when: amdgpu_install.failed
|
||||
when: amdgpu_install.failed or "1" == "1"
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Prepare Cron Job To SCM
|
||||
cron:
|
||||
|
Loading…
x
Reference in New Issue
Block a user