2021-02-15 15:19:11 -06:00
|
|
|
---
|
|
|
|
# Load receiver addresses
|
|
|
|
|
|
|
|
## Load Config ##
|
|
|
|
|
|
|
|
- name: Miner | Facts | Config File | Download
|
2021-02-15 15:50:05 -06:00
|
|
|
shell: "scp {{ wallet_server }}:{{ wallet_file_remote }} {{ wallet_file_local }}; chmod 700 {{ wallet_file_local }}"
|
2021-02-15 15:19:11 -06:00
|
|
|
|
2021-02-15 15:56:07 -06:00
|
|
|
- name: Miner | Facts | Config File | Load XMR
|
|
|
|
set_fact:
|
|
|
|
wallet_xmr: "{{ lookup('ini', 'xmr, file={{wallet_file_local}}') }}"
|
|
|
|
when: wallet_file_local is file
|
|
|
|
ignore_errors: yes
|
2021-02-15 15:19:11 -06:00
|
|
|
- name: Miner | Facts | Config File | Load XMR
|
|
|
|
set_fact:
|
2021-02-15 15:52:03 -06:00
|
|
|
wallet_xmr: "{{ lookup('ini', 'xmr, section=null, file={{wallet_file_local}}') }}"
|
2021-02-15 15:33:26 -06:00
|
|
|
when: wallet_file_local is file
|
2021-02-15 15:56:07 -06:00
|
|
|
ignore_errors: yes
|
|
|
|
- name: Miner | Facts | Config File | Load XMR
|
|
|
|
set_fact:
|
|
|
|
wallet_xmr: "{{ lookup('ini', 'xmr, section=wallet, file={{wallet_file_local}}') }}"
|
|
|
|
when: wallet_file_local is file
|
|
|
|
ignore_errors: yes
|
|
|
|
- name: Miner | Facts | Config File | Load XMR
|
|
|
|
set_fact:
|
|
|
|
wallet_xmr: "{{ lookup('ini', 'xmr, section=global, file={{wallet_file_local}}') }}"
|
|
|
|
when: wallet_file_local is file
|
|
|
|
ignore_errors: yes
|
2021-02-15 15:19:11 -06:00
|
|
|
|
2021-02-15 15:56:07 -06:00
|
|
|
- name: Miner | Facts | Config File | Load ETH
|
|
|
|
set_fact:
|
|
|
|
wallet_eth: "{{ lookup('ini', 'eth, file={{wallet_file_local}}') }}"
|
|
|
|
when: wallet_file_local is file
|
|
|
|
ignore_errors: yes
|
2021-02-15 15:19:11 -06:00
|
|
|
- name: Miner | Facts | Config File | Load ETH
|
|
|
|
set_fact:
|
2021-02-15 15:52:03 -06:00
|
|
|
wallet_eth: "{{ lookup('ini', 'eth, section=null, file={{wallet_file_local}}') }}"
|
2021-02-15 15:33:26 -06:00
|
|
|
when: wallet_file_local is file
|
2021-02-15 15:56:07 -06:00
|
|
|
ignore_errors: yes
|
|
|
|
- name: Miner | Facts | Config File | Load ETH
|
|
|
|
set_fact:
|
|
|
|
wallet_eth: "{{ lookup('ini', 'eth, section=wallet, file={{wallet_file_local}}') }}"
|
|
|
|
when: wallet_file_local is file
|
|
|
|
ignore_errors: yes
|
|
|
|
- name: Miner | Facts | Config File | Load ETH
|
|
|
|
set_fact:
|
|
|
|
wallet_eth: "{{ lookup('ini', 'eth, section=global, file={{wallet_file_local}}') }}"
|
|
|
|
when: wallet_file_local is file
|
|
|
|
ignore_errors: yes
|
2021-02-15 15:19:11 -06:00
|
|
|
|
|
|
|
|
|
|
|
## Verify ##
|
|
|
|
|
|
|
|
- name: Miner | Facts | Config File | Load ETH
|
|
|
|
debug:
|
|
|
|
var: "{{ item }}"
|
|
|
|
loop:
|
|
|
|
- wallet_xmr
|
2021-02-15 15:56:07 -06:00
|
|
|
- wallet_eth
|