mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2025-01-08 05:52:10 +07:00
36 lines
943 B
YAML
36 lines
943 B
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-static-linux-amd64
|
||
|
dest: /path/to/remote/xmr-nodes/bin
|
||
|
owner: your_user
|
||
|
group: your_group
|
||
|
mode: 0755
|
||
|
when: inventory_hostname in groups['prober']
|
||
|
|
||
|
- name: Upload binary file (ARM64)
|
||
|
copy:
|
||
|
src: ../../bin/xmr-nodes-static-linux-arm64
|
||
|
dest: /path/to/remote/xmr-nodes/bin
|
||
|
owner: your_user
|
||
|
group: your_group
|
||
|
mode: 0755
|
||
|
when: inventory_hostname in groups['prober']
|
||
|
|
||
|
|
||
|
- name: Start systemd timer
|
||
|
systemd:
|
||
|
name: xmr-nodes-prober.timer
|
||
|
state: started
|
||
|
when: inventory_hostname in groups['prober']
|