Try loading wallet addresses to variables.
This commit is contained in:
parent
73bedd015a
commit
7e9a363298
29
facts/miner/pool.yml
Normal file
29
facts/miner/pool.yml
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
# Create arrays of pools per coin.
|
||||
|
||||
- name: Miner | Facts | Pools
|
||||
set_fact:
|
||||
nanopool_xmr:
|
||||
- { "priority": 1, "name": "xmr-us-east1.nanopool.org:14433" }
|
||||
- { "priority": 2, "name": "xmr-us-west1.nanopool.org:14433" }
|
||||
- { "priority": 3, "name": "xmr-eu1.nanopool.org:14433" }
|
||||
- { "priority": 4, "name": "xmr-eu2.nanopool.org:14433" }
|
||||
- { "priority": 5, "name": "xmr-asia1.nanopool.org:14433" }
|
||||
- { "priority": 6, "name": "xmr-jp1.nanopool.org:14433" }
|
||||
- { "priority": 7, "name": "xmr-au1.nanopool.org:14433" }
|
||||
nanoool_eth:
|
||||
- { "priority": 1, "name": "eth-us-east1.nanopool.org:9999" }
|
||||
- { "priority": 2, "name": "eth-us-west1.nanopool.org:9999" }
|
||||
- { "priority": 3, "name": "eth-eu1.nanopool.org:9999" }
|
||||
- { "priority": 4, "name": "eth-eu2.nanopool.org:9999" }
|
||||
- { "priority": 5, "name": "eth-asia1.nanopool.org:9999" }
|
||||
- { "priority": 6, "name": "eth-jp1.nanopool.org:9999" }
|
||||
- { "priority": 7, "name": "eth-au1.nanopool.org:9999" }
|
||||
ethermine_eth:
|
||||
- { "priority": 1, "name": "us2.ethermine.org:5555" }
|
||||
- { "priority": 2, "name": "us1.ethermine.org:5555" }
|
||||
- { "priority": 3, "name": "eu1.ethermine.org:5555" }
|
||||
- { "priority": 4, "name": "asia1.ethermine.org:5555" }
|
||||
f2pool_eth:
|
||||
- { "priority": 1, "name": "eth-na.f2pool.com:6688" }
|
||||
- { "priority": 2, "name": "eth-backup.f2pool.com:6688" }
|
33
facts/miner/wallet.yml
Normal file
33
facts/miner/wallet.yml
Normal file
@ -0,0 +1,33 @@
|
||||
---
|
||||
# Load receiver addresses
|
||||
|
||||
## Variables ##
|
||||
|
||||
- name: Miner | Facts | Config File Name
|
||||
set_fact:
|
||||
wallet_file_remote: "InstallFiles/Miners/wallet.ini"
|
||||
wallet_file_local: "{{ user_mfn.home }}/wallet.ini"
|
||||
|
||||
|
||||
## Load Config ##
|
||||
|
||||
- name: Miner | Facts | Config File | Download
|
||||
shell: "scp {{ leet_ssh }}:{{ wallet_file_remote }} {{ wallet_file_local }}; chmod 600 {{ wallet_file_local }}"
|
||||
|
||||
- name: Miner | Facts | Config File | Load XMR
|
||||
set_fact:
|
||||
wallet_xmr: "{{ lookup('ini', 'section=xmr, file='wallet_file_local) }}"
|
||||
|
||||
- name: Miner | Facts | Config File | Load ETH
|
||||
set_fact:
|
||||
wallet_eth: "{{ lookup('ini', 'section=eth, file='wallet_file_local) }}"
|
||||
|
||||
|
||||
## Verify ##
|
||||
|
||||
- name: Miner | Facts | Config File | Load ETH
|
||||
debug:
|
||||
var: "{{ item }}"
|
||||
loop:
|
||||
- wallet_xmr
|
||||
- wallet_eth
|
Loading…
x
Reference in New Issue
Block a user