72 lines
2.5 KiB
YAML
72 lines
2.5 KiB
YAML
---
|
|
# 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" }
|
|
nanopool_eth:
|
|
- { "priority": 1, "name": "eth-us-east1.nanopool.org:9433" }
|
|
- { "priority": 2, "name": "eth-us-west1.nanopool.org:9433" }
|
|
- { "priority": 3, "name": "eth-eu1.nanopool.org:9433" }
|
|
- { "priority": 4, "name": "eth-eu2.nanopool.org:9433" }
|
|
- { "priority": 5, "name": "eth-asia1.nanopool.org:9433" }
|
|
- { "priority": 6, "name": "eth-jp1.nanopool.org:9433" }
|
|
- { "priority": 7, "name": "eth-au1.nanopool.org:9433" }
|
|
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" }
|
|
|
|
|
|
## Determine What Miners Should Use ##
|
|
|
|
# CPU #
|
|
|
|
- name: Miner | Facts | Pools | Set GPU to Nanopool Eth
|
|
set_fact:
|
|
cpu_pool: "{{ nanopool_xmr }}"
|
|
when: nanominer_cpu is defined and nanominer_cpu_pool is defined and
|
|
nanominer_cpu == "xmr" and nanominer_cpu_pool == "nanopool"
|
|
|
|
|
|
# GPU #
|
|
|
|
- name: Miner | Facts | Pools | Set GPU to Nanopool Eth
|
|
set_fact:
|
|
gpu_pool: "{{ nanopool_eth }}"
|
|
when: nanominer_gpu is defined and nanominer_gpu_pool is defined and
|
|
nanominer_gpu == "eth" and nanominer_gpu_pool == "nanopool"
|
|
|
|
- name: Miner | Facts | Pools | Set GPU to Etherpool Eth
|
|
set_fact:
|
|
gpu_pool: "{{ ethermine_eth }}"
|
|
when: nanominer_gpu is defined and nanominer_gpu_pool is defined and
|
|
nanominer_gpu == "eth" and nanominer_gpu_pool == "etherpool"
|
|
|
|
- name: Miner | Facts | Pools | Set GPU to F2Pool Eth
|
|
set_fact:
|
|
gpu_pool: "{{ f2pool_eth }}"
|
|
when: nanominer_gpu is defined and nanominer_gpu_pool is defined and
|
|
nanominer_gpu == "eth" and nanominer_gpu_pool == "f2pool"
|
|
|
|
|
|
|
|
## Validate ##
|
|
|
|
- name: Miner | Facts | Pools | DEBUG
|
|
debug:
|
|
var: "{{ item }}"
|
|
loop:
|
|
- cpu_pool
|
|
- gpu_pool |