Miner group can't see localhost facts, had to add variable for scp server.

This commit is contained in:
Hyperling 2021-02-15 15:25:11 -06:00
parent 7e9a363298
commit 3643cad3d9
2 changed files with 9 additions and 9 deletions

8
facts/miner/system.yml Normal file
View File

@ -0,0 +1,8 @@
---
# Define file, folder, and other facts per OS.
- name: Miner | Facts | System | Wallet Location
set_fact:
wallet_server: 'ling@leet'
wallet_file_remote: "InstallFiles/Miners/wallet.ini"
wallet_file_local: "{{ user_mfn.home }}/wallet.ini"

View File

@ -1,18 +1,10 @@
--- ---
# Load receiver addresses # Load receiver addresses
## Variables ##
- name: Miner | Facts | Config File Name
set_fact:
wallet_file_remote: "InstallFiles/Miners/wallet.ini"
wallet_file_local: "{{ user_mfn.home }}/wallet.ini"
## Load Config ## ## Load Config ##
- name: Miner | Facts | Config File | Download - name: Miner | Facts | Config File | Download
shell: "scp {{ leet_ssh }}:{{ wallet_file_remote }} {{ wallet_file_local }}; chmod 600 {{ wallet_file_local }}" shell: "scp {{ wallet_server }}:{{ wallet_file_remote }} {{ wallet_file_local }}; chmod 600 {{ wallet_file_local }}"
- name: Miner | Facts | Config File | Load XMR - name: Miner | Facts | Config File | Load XMR
set_fact: set_fact: