Use repo module.
This commit is contained in:
		| @@ -14,8 +14,10 @@ | |||||||
|   become: true |   become: true | ||||||
|  |  | ||||||
| - name: Ethminer | Add PPA | - name: Ethminer | Add PPA | ||||||
|   shell: 'add-apt-repository ppa:ethereum/ethereum; apt update' |   apt_repository:  | ||||||
|   become: true |     repo: ppa:ethereum/ethereum | ||||||
|  |     update_cache: yes | ||||||
|  |     state: present | ||||||
|  |  | ||||||
| - name: Ethminer | Install Ethereum | - name: Ethminer | Install Ethereum | ||||||
|   package:  |   package:  | ||||||
| @@ -38,6 +40,10 @@ | |||||||
| - name: Ethminer | cmake Build | - name: Ethminer | cmake Build | ||||||
|   shell: 'cd ethminer/build; cmake --build .' |   shell: 'cd ethminer/build; cmake --build .' | ||||||
|  |  | ||||||
|  | - name: Ethminer | Kill Current Jobs | ||||||
|  |   shell: 'killall ethminer.sh' | ||||||
|  |   become: true | ||||||
|  |  | ||||||
| - name: Ethminer | make install | - name: Ethminer | make install | ||||||
|   shell: 'cd /home/mfn/ethminer/build; make install' |   shell: 'cd /home/mfn/ethminer/build; make install' | ||||||
|   become: true |   become: true | ||||||
| @@ -45,10 +51,3 @@ | |||||||
| - 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 |   become: true | ||||||
|  |  | ||||||
| - name: Ethminer | Kill Current Jobs |  | ||||||
|   shell: 'killall ethminer.sh' |  | ||||||
|   become: true |  | ||||||
|  |  | ||||||
| - name: Ethminer | Start Mining |  | ||||||
|   shell: 'time ethminer.sh' |  | ||||||
		Reference in New Issue
	
	Block a user