mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-12-23 12:09:47 +00:00
0f7029b939
The ansible playbook is now using ansible_facts to determinate target server or prober CPU architecture. The final "production" binary name and changed to just simply "xmr-nodes-{client,server}".
35 lines
1 KiB
YAML
35 lines
1 KiB
YAML
---
|
|
- name: Deploy and Restart Prober Timer
|
|
hosts: all
|
|
become: true
|
|
tasks:
|
|
- name: Stop prober systemd timer
|
|
systemd:
|
|
name: xmr-nodes-prober.timer
|
|
state: stopped
|
|
when: inventory_hostname in groups['prober']
|
|
|
|
- name: Upload binary file (AMD64)
|
|
copy:
|
|
src: ../../bin/xmr-nodes-client-linux-amd64
|
|
dest: /path/to/remote/xmr-nodes/bin/xmr-nodes-client
|
|
owner: your_user
|
|
group: your_group
|
|
mode: 0755
|
|
when: inventory_hostname in groups['prober'] and ansible_facts['architecture'] == 'x86_64'
|
|
|
|
- name: Upload binary file (ARM64)
|
|
copy:
|
|
src: ../../bin/xmr-nodes-client-linux-arm64
|
|
dest: /path/to/remote/xmr-nodes/bin/xmr-nodes-client
|
|
owner: your_user
|
|
group: your_group
|
|
mode: 0755
|
|
when: inventory_hostname in groups['prober'] and ansible_facts['architecture'] == 'aarch64'
|
|
|
|
|
|
- name: Start systemd timer
|
|
systemd:
|
|
name: xmr-nodes-prober.timer
|
|
state: started
|
|
when: inventory_hostname in groups['prober']
|