Try different way of specifying key.

This commit is contained in:
Hyperling 2021-02-15 15:43:34 -06:00
parent 51e39cfc94
commit 47c86079da
2 changed files with 4 additions and 3 deletions

View File

@ -6,3 +6,4 @@
wallet_server: 'ling@leet'
wallet_file_remote: "InstallFiles/Miners/wallet.ini"
wallet_file_local: "{{ user_mfn.home }}/wallet.ini"
wallet_section: wallet

View File

@ -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