From 47c86079dad5970d167140fef65e5c274e53678c Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 15 Feb 2021 15:43:34 -0600 Subject: [PATCH] Try different way of specifying key. --- facts/miner/system.yml | 3 ++- facts/miner/wallet.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/facts/miner/system.yml b/facts/miner/system.yml index e323f66..336c941 100644 --- a/facts/miner/system.yml +++ b/facts/miner/system.yml @@ -5,4 +5,5 @@ set_fact: wallet_server: 'ling@leet' wallet_file_remote: "InstallFiles/Miners/wallet.ini" - wallet_file_local: "{{ user_mfn.home }}/wallet.ini" \ No newline at end of file + wallet_file_local: "{{ user_mfn.home }}/wallet.ini" + wallet_section: wallet \ No newline at end of file diff --git a/facts/miner/wallet.yml b/facts/miner/wallet.yml index 00da368..639c083 100644 --- a/facts/miner/wallet.yml +++ b/facts/miner/wallet.yml @@ -8,12 +8,12 @@ - name: Miner | Facts | Config File | Load XMR set_fact: - wallet_xmr: "{{ lookup('ini', 'section=wallet, _terms=xmr, file={{wallet_file_local}}') }}" + wallet_xmr: "{{ lookup('ini', 'xmr, section={{wallet_section}}, file={{wallet_file_local}}') }}" when: wallet_file_local is file - name: Miner | Facts | Config File | Load ETH set_fact: - wallet_eth: "{{ lookup('ini', 'section=wallet, _terms=eth, file={{wallet_file_local}}') }}" + wallet_eth: "{{ lookup('ini', 'eth, section={{wallet_section}}, file={{wallet_file_local}}') }}" when: wallet_file_local is file