Make config file useful for more than just wallets. Not sure what else yet.

This commit is contained in:
2021-02-15 16:11:25 -06:00
parent 4287c89924
commit f35527eedd
3 changed files with 8 additions and 9 deletions

22
facts/miner/config.yml Normal file

@ -0,0 +1,22 @@
---
# Variablize keys in config file.
## Load Config File ##
- name: Miner | Facts | Config File | Download
shell: "scp {{ config_server }}:{{ config_file_remote }} {{ config_file_local }}; chmod 700 {{ config_file_local }}"
- name: Miner | Facts | Config File | Load Wallets
set_fact:
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}}') }}"
## Verify ##
- name: Miner | Facts | Config File | DEBUG
debug:
var: "{{ item }}"
loop:
- wallet_xmr
- wallet_eth