2021-02-15 15:25:11 -06:00
|
|
|
---
|
|
|
|
# Define file, folder, and other facts per OS.
|
|
|
|
|
2021-02-15 17:48:04 -06:00
|
|
|
## Global ##
|
|
|
|
|
2021-02-18 07:51:57 -06:00
|
|
|
- name: Miner | Facts | System | Global 1
|
2021-02-15 17:48:04 -06:00
|
|
|
set_fact:
|
|
|
|
file_server: 'ling@leet'
|
2021-02-15 19:57:14 -06:00
|
|
|
check_alive_start: "[[ `ps -ef | grep -v 'grep' | grep -v '/bin/sh -c' | grep -v $$ | grep -c '"
|
2021-02-15 19:06:32 -06:00
|
|
|
check_alive_end: "'` == '0' ]] &&"
|
2021-02-18 07:51:57 -06:00
|
|
|
combined_log_file: "{{ user_mfn.home }}/log.txt"
|
|
|
|
|
|
|
|
- name: Miner | Facts | System | Global 2
|
|
|
|
set_fact:
|
|
|
|
use_combined_log_file: ">> {{ combined_log_file }} 2>&1"
|
2021-02-15 17:48:04 -06:00
|
|
|
|
|
|
|
|
2021-02-15 18:05:57 -06:00
|
|
|
## Config File ##
|
2021-02-15 18:05:22 -06:00
|
|
|
|
2021-02-15 17:48:04 -06:00
|
|
|
- name: Miner | Facts | System | My Config File
|
2021-02-15 15:25:11 -06:00
|
|
|
set_fact:
|
2021-02-15 16:03:34 -06:00
|
|
|
config_file_remote: "InstallFiles/Miners/miner.ini"
|
|
|
|
config_file_local: "{{ user_mfn.home }}/miner.ini"
|
2021-02-15 16:11:25 -06:00
|
|
|
config_section_wallet: wallet
|
2021-02-15 17:48:04 -06:00
|
|
|
|
|
|
|
|
2021-02-17 05:12:25 -06:00
|
|
|
## Ethminer ##
|
|
|
|
|
|
|
|
## xmr-stak ##
|
|
|
|
|
2021-02-15 18:05:57 -06:00
|
|
|
## Nanominer ##
|
2021-02-15 17:48:04 -06:00
|
|
|
|
|
|
|
- name: Miner | Facts | System | nanominer 1
|
|
|
|
set_fact:
|
|
|
|
nanominer_home: "{{ user_mfn.home }}/nanominer"
|
2021-11-21 22:28:11 +00:00
|
|
|
nanominer_version: "3.4.3" # Download link: https://github.com/nanopool/nanominer/releases
|
2021-02-15 17:48:04 -06:00
|
|
|
nanominer_script: "{{ user_mfn.home }}/nanominer.sh"
|
|
|
|
|
|
|
|
- name: Miner | Facts | System | nanominer 2
|
|
|
|
set_fact:
|
|
|
|
nanominer_bin: "{{ nanominer_home }}/nanominer-linux-{{ nanominer_version }}"
|
|
|
|
nanominer_tar_remote: "InstallFiles/Miners/nanominer/*{{ nanominer_version }}*.tar.gz"
|
|
|
|
nanominer_config: "{{ nanominer_home }}/config.ini"
|
|
|
|
nanominer_logs: "{{ nanominer_home}}/logs"
|
|
|
|
|
|
|
|
- name: Miner | Facts | System | nanominer 3
|
|
|
|
set_fact:
|
|
|
|
nanominer_tar_local: "{{ nanominer_bin }}.tar.gz"
|
|
|
|
nanominer_exec: "{{ nanominer_bin }}/nanominer"
|
2021-02-17 05:12:25 -06:00
|
|
|
|
|
|
|
|
|
|
|
## Miner Array ##
|
|
|
|
|
|
|
|
- name: Miner | Facts | System | Miner Array
|
|
|
|
set_fact:
|
|
|
|
miners:
|
2021-02-18 07:51:57 -06:00
|
|
|
- { "name": "xmr_stak_cpu", "enabled": '{{ (xmr_stak_cpu is defined) }}', "command": "{{ user_mfn.home }}/xmr_stak_cpu.sh {{ use_combined_log_file }}" }
|
|
|
|
- { "name": "ethminer", "enabled": '{{ (ethminer is defined) }}', "command": "{{ user_mfn.home }}/ethminer.sh {{ use_combined_log_file }}" }
|
|
|
|
- { "name": "nanominer", "enabled": '{{ (nanominer is defined) }}', "command": "{{ nanominer_script }} {{ use_combined_log_file }}" }
|