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

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

View File

@ -0,0 +1,2 @@
---
# Load receiver addresses

View File

@ -1,23 +1,20 @@
--- ---
# Load receiver addresses # Variablize keys in config file.
## Load Config ## ## Load Config File ##
- name: Miner | Facts | Config File | Download - name: Miner | Facts | Config File | Download
shell: "scp {{ config_server }}:{{ config_file_remote }} {{ config_file_local }}; chmod 700 {{ config_file_local }}" shell: "scp {{ config_server }}:{{ config_file_remote }} {{ config_file_local }}; chmod 700 {{ config_file_local }}"
- name: Miner | Facts | Config File | Load XMR - name: Miner | Facts | Config File | Load Wallets
set_fact: set_fact:
wallet_xmr: "{{ lookup('ini', 'xmr section={{config_section_wallet}} file={{config_file_local}}') }}" wallet_xmr: "{{ lookup('ini', 'xmr section={{config_section_wallet}} file={{config_file_local}}') }}"
- name: Miner | Facts | Config File | Load ETH
set_fact:
wallet_eth: "{{ lookup('ini', 'eth section={{config_section_wallet}} file={{config_file_local}}') }}" wallet_eth: "{{ lookup('ini', 'eth section={{config_section_wallet}} file={{config_file_local}}') }}"
## Verify ## ## Verify ##
- name: Miner | Facts | Config File | Load ETH - name: Miner | Facts | Config File | DEBUG
debug: debug:
var: "{{ item }}" var: "{{ item }}"
loop: loop:

View File

@ -1,7 +1,7 @@
--- ---
# Define file, folder, and other facts per OS. # Define file, folder, and other facts per OS.
- name: Miner | Facts | System | Wallet Location - name: Miner | Facts | System | Config File
set_fact: set_fact:
config_server: 'ling@leet' config_server: 'ling@leet'
config_file_remote: "InstallFiles/Miners/miner.ini" config_file_remote: "InstallFiles/Miners/miner.ini"