Only run driver install if final uninstall not found.
This commit is contained in:
parent
caac162f2f
commit
bdde2cb909
@ -79,7 +79,7 @@
|
|||||||
when: mine.xmr is defined
|
when: mine.xmr is defined
|
||||||
|
|
||||||
# Ethereum
|
# Ethereum
|
||||||
- include: tasks/miner/driver/amdgpu.yml
|
- include: tasks/miner/drivers/amdgpu.yml
|
||||||
when: ansible_distribution == "Ubuntu" and mine.eth is defined
|
when: ansible_distribution == "Ubuntu" and mine.eth is defined
|
||||||
|
|
||||||
- include: tasks/miner/gpu/eth/ethminer.yml
|
- include: tasks/miner/gpu/eth/ethminer.yml
|
||||||
|
@ -1,17 +1,30 @@
|
|||||||
---
|
---
|
||||||
# Install OpenCL drivers.
|
# Install OpenCL drivers.
|
||||||
|
|
||||||
|
- name: Check If Installed
|
||||||
|
shell: 'which amdgpu-pro-uninstall'
|
||||||
|
register: amdgpu_installed
|
||||||
|
|
||||||
- name: Folder
|
- name: Folder
|
||||||
shell: 'mkdir -p Downloads'
|
shell: 'mkdir -p Downloads'
|
||||||
|
when: amdgpu_installed.stdout == ""
|
||||||
|
|
||||||
- name: Download
|
- name: Download
|
||||||
shell: 'scp ling@leet:InstallFiles/Drivers/amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz Downloads/'
|
shell: 'scp ling@leet:InstallFiles/Drivers/amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz Downloads/'
|
||||||
|
when: amdgpu_installed.stdout == ""
|
||||||
|
|
||||||
- name: Extract
|
- name: Extract
|
||||||
shell: 'cd Downloads; tar -xvf amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz'
|
shell: 'cd Downloads; tar -xvf amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz'
|
||||||
|
when: amdgpu_installed.stdout == ""
|
||||||
|
|
||||||
- name: Install 1 - All
|
- name: Install 1 - All
|
||||||
shell: 'cd Downloads/amdgpu-pro-20.45-1188099-ubuntu-20.04; amdgpu-install -y'
|
shell: 'cd Downloads/amdgpu-pro-20.45-1188099-ubuntu-20.04; amdgpu-install -y'
|
||||||
|
when: amdgpu_installed.stdout == ""
|
||||||
|
|
||||||
- name: Install 2 - Pro
|
- name: Install 2 - Pro
|
||||||
shell: 'cd Downloads/amdgpu-pro-20.45-1188099-ubuntu-20.04; amdgpu-pro-install -y --opencl=pal,legacy'
|
shell: 'cd Downloads/amdgpu-pro-20.45-1188099-ubuntu-20.04; amdgpu-pro-install -y --opencl=pal,legacy'
|
||||||
|
when: amdgpu_installed.stdout == ""
|
||||||
|
|
||||||
|
- name: Delete
|
||||||
|
shell: 'rm -rf Downloads/*'
|
||||||
|
when: amdgpu_installed.stdout == ""
|
Loading…
x
Reference in New Issue
Block a user