Install ethminer as root in Downloads just like AMDGPU PRO.
This commit is contained in:
parent
93bbc49749
commit
7a63b72b58
@ -75,11 +75,11 @@
|
|||||||
- include: tasks/miner/debug.yml
|
- include: tasks/miner/debug.yml
|
||||||
- include: tasks/miner/acct_mgmt/mfn.yml
|
- include: tasks/miner/acct_mgmt/mfn.yml
|
||||||
|
|
||||||
|
# Installations
|
||||||
tasks:
|
tasks:
|
||||||
### CPU SECTION ###
|
### CPU SECTION ###
|
||||||
# Monero #
|
# Monero #
|
||||||
- include: tasks/miner/cpu/xmr.yml
|
- include: tasks/miner/cpu/xmr.yml
|
||||||
become_user: mfn
|
|
||||||
when: cpu is defined and xmr is defined
|
when: cpu is defined and xmr is defined
|
||||||
|
|
||||||
### GPU Section ###
|
### GPU Section ###
|
||||||
@ -89,9 +89,9 @@
|
|||||||
|
|
||||||
# Ethereum #
|
# Ethereum #
|
||||||
- include: tasks/miner/gpu/ethminer.yml
|
- include: tasks/miner/gpu/ethminer.yml
|
||||||
become_user: mfn
|
when: amdgpu is defined and eth is defined
|
||||||
when: (amdgpu is defined or nvidia is defined) and eth is defined
|
|
||||||
|
|
||||||
|
# Scheduling
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- include: tasks/miner/cron/ansible.yml
|
- include: tasks/miner/cron/ansible.yml
|
||||||
|
|
||||||
|
@ -49,7 +49,3 @@
|
|||||||
- name: AMDGPU | Install Pro Driver
|
- name: AMDGPU | Install Pro Driver
|
||||||
shell: 'cd /root/Downloads/amdgpu-pro-20.45-1188099-ubuntu-20.04; ./amdgpu-pro-install -y --opencl=pal,legacy'
|
shell: 'cd /root/Downloads/amdgpu-pro-20.45-1188099-ubuntu-20.04; ./amdgpu-pro-install -y --opencl=pal,legacy'
|
||||||
when: amdgpu_install.failed
|
when: amdgpu_install.failed
|
||||||
|
|
||||||
- name: AMDGPU | Delete Downloads
|
|
||||||
shell: 'rm -rf /root/Downloads/*'
|
|
||||||
when: amdgpu_install.failed
|
|
@ -12,20 +12,17 @@
|
|||||||
- libdbus-1-dev
|
- libdbus-1-dev
|
||||||
- mesa-common-dev
|
- mesa-common-dev
|
||||||
state: present
|
state: present
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Ethminer | Add PPA
|
- name: Ethminer | Add PPA
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: ppa:ethereum/ethereum
|
repo: ppa:ethereum/ethereum
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
state: present
|
state: present
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Ethminer | Install Ethereum
|
- name: Ethminer | Install Ethereum
|
||||||
package:
|
package:
|
||||||
name: ethereum
|
name: ethereum
|
||||||
state: present
|
state: present
|
||||||
become: true
|
|
||||||
|
|
||||||
|
|
||||||
## Test ##
|
## Test ##
|
||||||
@ -35,34 +32,34 @@
|
|||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
|
|
||||||
## Install #
|
## Download ##
|
||||||
- name: Ethminer | Clone Git Repo
|
- name: Ethminer | Clone Git Repo
|
||||||
shell: 'cd /home/mfn; git clone https://github.com/ethereum-mining/ethminer.git'
|
shell: 'cd /root/Downloads; git clone https://github.com/ethereum-mining/ethminer.git'
|
||||||
when: ethminer_install.failed
|
when: ethminer_install.failed
|
||||||
|
|
||||||
- name: Ethminer | Update Repo's Repos
|
- name: Ethminer | Update Repo's Repos
|
||||||
shell: 'cd /home/mfn/ethminer; git submodule update --init --recursive'
|
shell: 'cd /root/Downloads/ethminer; git submodule update --init --recursive'
|
||||||
when: ethminer_install.failed
|
when: ethminer_install.failed
|
||||||
|
|
||||||
- name: Ethminer | Create Build Folder
|
- name: Ethminer | Create Build Folder
|
||||||
shell: 'cd /home/mfn/ethminer; mkdir -p build'
|
shell: 'cd /root/Downloads/ethminer; mkdir -p build'
|
||||||
when: ethminer_install.failed
|
when: ethminer_install.failed
|
||||||
|
|
||||||
- name: Ethminer | cmake Flags
|
- name: Ethminer | cmake Flags
|
||||||
shell: 'cd /home/mfn/ethminer/build; cmake .. -DETHASHCL=ON -DETHASHCUDA=OFF -DAPICORE=ON -DBINKERN=ON -DETHDBUS=ON -DUSE_SYS_OPENCL=ON -ETHASHCPU=ON -DEVBUILD=ON'
|
shell: 'cd /root/Downloads/ethminer/build; cmake .. -DETHASHCL=ON -DETHASHCUDA=OFF -DAPICORE=ON -DBINKERN=ON -DETHDBUS=ON -DUSE_SYS_OPENCL=ON -ETHASHCPU=ON -DEVBUILD=ON'
|
||||||
when: ethminer_install.failed
|
when: ethminer_install.failed
|
||||||
|
|
||||||
- name: Ethminer | cmake Build
|
- name: Ethminer | cmake Build
|
||||||
shell: 'cd /home/mfn/ethminer/build; cmake --build .'
|
shell: 'cd /root/Downloads/ethminer/build; cmake --build .'
|
||||||
when: ethminer_install.failed
|
when: ethminer_install.failed
|
||||||
|
|
||||||
|
|
||||||
|
## Install #
|
||||||
- name: Ethminer | make install
|
- name: Ethminer | make install
|
||||||
shell: 'cd /home/mfn/ethminer/build; make install'
|
shell: 'cd /root/Downloads/ethminer/build; make install'
|
||||||
become: true
|
|
||||||
when: ethminer_install.failed
|
when: ethminer_install.failed
|
||||||
|
|
||||||
|
|
||||||
## Personal Setup ##
|
## Personal Setup ##
|
||||||
- name: Ethminer | Download Script
|
- name: Ethminer | Download Script
|
||||||
shell: 'scp ling@leet:InstallFiles/Miners/ETH/ethminer.sh /home/mfn/; chmod 755 /home/mfn/ethminer.sh'
|
shell: 'scp ling@leet:InstallFiles/Miners/ETH/ethminer.sh /home/mfn/; chmod 755 /home/mfn/ethminer.sh'
|
||||||
become: true
|
|
Loading…
x
Reference in New Issue
Block a user