Changes for ethminer.

This commit is contained in:
2021-02-11 12:12:52 -06:00
parent bdde2cb909
commit 60ce1e2f93
3 changed files with 29 additions and 21 deletions

View File

@ -1,30 +1,34 @@
---
# Install OpenCL drivers.
- name: Check If Installed
- name: AMDGPU | Check If Installed
shell: 'which amdgpu-pro-uninstall'
register: amdgpu_installed
- name: Folder
- name: AMDGPU | Debug
debug:
var: amdgpu_installed
- name: AMDGPU | Folder
shell: 'mkdir -p Downloads'
when: amdgpu_installed.stdout == ""
- name: Download
- name: AMDGPU | Download
shell: 'scp ling@leet:InstallFiles/Drivers/amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz Downloads/'
when: amdgpu_installed.stdout == ""
- name: Extract
- name: AMDGPU | Extract
shell: 'cd Downloads; tar -xvf amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz'
when: amdgpu_installed.stdout == ""
- name: Install 1 - All
- name: AMDGPU | Install 1 - All
shell: 'cd Downloads/amdgpu-pro-20.45-1188099-ubuntu-20.04; amdgpu-install -y'
when: amdgpu_installed.stdout == ""
- name: Install 2 - Pro
- name: AMDGPU | Install 2 - Pro
shell: 'cd Downloads/amdgpu-pro-20.45-1188099-ubuntu-20.04; amdgpu-pro-install -y --opencl=pal,legacy'
when: amdgpu_installed.stdout == ""
- name: Delete
- name: AMDGPU | Delete
shell: 'rm -rf Downloads/*'
when: amdgpu_installed.stdout == ""