Beginning to put together tasks for ETH mining.
This commit is contained in:
@ -1,2 +0,0 @@
|
||||
---
|
||||
# Mine Ethereum with GPU!
|
48
tasks/miner/gpu/ethminer.yml
Normal file
48
tasks/miner/gpu/ethminer.yml
Normal file
@ -0,0 +1,48 @@
|
||||
---
|
||||
# Mine Ethereum with GPU!
|
||||
|
||||
- name: Install Dependencies
|
||||
package:
|
||||
name: build-essential dkms cmake perl libdbus-1-dev mesa-common-dev
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Add PPA
|
||||
shell: 'add-apt-repository ppa:ethereum/ethereum; apt update'
|
||||
become: true
|
||||
|
||||
- name: Install Ethereum
|
||||
package:
|
||||
name: ethereum
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Clone Git Repo
|
||||
shell: 'git clone https://github.com/ethereum-mining/ethminer.git'
|
||||
|
||||
- name: Update Repo's Repos
|
||||
shell: 'cd ethminer; git submodule update --init --recursive'
|
||||
|
||||
- name: Create Build Folder
|
||||
shell: 'cd ethminer; mkdir -p build'
|
||||
|
||||
- name: cmake Flags
|
||||
shell: 'cd ethminer/build; cmake .. -DETHASHCL=ON -DETHASHCUDA=OFF -DAPICORE=ON -DBINKERN=ON -DETHDBUS=ON -DUSE_SYS_OPENCL=ON -ETHASHCPU=ON -DEVBUILD=ON'
|
||||
|
||||
- name: cmake Build
|
||||
shell: 'cd ethminer/build; cmake --build .'
|
||||
|
||||
- name: cmake Build
|
||||
shell: 'cd /home/mfn/ethminer/build; make install'
|
||||
become: true
|
||||
|
||||
- name: Download Script
|
||||
shell: 'scp ling@leet:InstallFiles/Miners/ETH/ethminer.sh /home/mfn/; chmod 755 /home/mfn/ethminer.sh'
|
||||
become: true
|
||||
|
||||
- name: Kill Current Jobs
|
||||
shell: 'killall ethminer.sh'
|
||||
become: true
|
||||
|
||||
- name: Start Mining
|
||||
shell: 'time ethminer.sh'
|
Reference in New Issue
Block a user