Files
env-ansible/facts/miner/config.yml
T
2026-10-02 11:25:34 -07:00

29 lines
810 B
YAML

---
# Variablize keys in config file.
## Load Config File ##
- name: Miner | Facts | Config File | Download
ansible.builtin.shell: "scp {{ file_server }}:{{ config_file_remote }} {{ config_file_local }}; chmod 700 {{ config_file_local }}"
- name: Miner | Facts | Config File | Load Wallets
ansible.builtin.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
ansible.builtin.debug:
var: "{{ item }}"
loop:
- wallet_xmr
- wallet_eth
## Clean Up ##
- name: Miner | Facts | Config File | Delete
ansible.builtin.shell: "mv {{ config_file_local }} ~/TRASH/"