2021-02-15 15:19:11 -06:00
|
|
|
---
|
2021-02-15 16:11:25 -06:00
|
|
|
# Variablize keys in config file.
|
2021-02-15 15:19:11 -06:00
|
|
|
|
2021-02-15 16:11:25 -06:00
|
|
|
## Load Config File ##
|
2021-02-15 15:19:11 -06:00
|
|
|
|
|
|
|
- name: Miner | Facts | Config File | Download
|
2021-02-15 16:04:27 -06:00
|
|
|
shell: "scp {{ config_server }}:{{ config_file_remote }} {{ config_file_local }}; chmod 700 {{ config_file_local }}"
|
2021-02-15 15:19:11 -06:00
|
|
|
|
2021-02-15 16:11:25 -06:00
|
|
|
- name: Miner | Facts | Config File | Load Wallets
|
2021-02-15 15:56:07 -06:00
|
|
|
set_fact:
|
2021-02-15 16:03:34 -06:00
|
|
|
wallet_xmr: "{{ lookup('ini', 'xmr section={{config_section_wallet}} file={{config_file_local}}') }}"
|
|
|
|
wallet_eth: "{{ lookup('ini', 'eth section={{config_section_wallet}} file={{config_file_local}}') }}"
|
2021-02-15 15:19:11 -06:00
|
|
|
|
|
|
|
|
|
|
|
## Verify ##
|
|
|
|
|
2021-02-15 16:11:25 -06:00
|
|
|
- name: Miner | Facts | Config File | DEBUG
|
2021-02-15 15:19:11 -06:00
|
|
|
debug:
|
|
|
|
var: "{{ item }}"
|
|
|
|
loop:
|
|
|
|
- wallet_xmr
|
2021-02-15 15:56:07 -06:00
|
|
|
- wallet_eth
|