2024-05-06 15:21:46 +00:00
|
|
|
---
|
|
|
|
- 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:
|
2024-05-18 11:09:36 +00:00
|
|
|
src: ../../bin/xmr-nodes-client-linux-amd64
|
|
|
|
dest: /path/to/remote/xmr-nodes/bin/xmr-nodes-client
|
2024-05-06 15:21:46 +00:00
|
|
|
owner: your_user
|
|
|
|
group: your_group
|
|
|
|
mode: 0755
|
2024-05-18 11:09:36 +00:00
|
|
|
when: inventory_hostname in groups['prober'] and ansible_facts['architecture'] == 'x86_64'
|
2024-05-06 15:21:46 +00:00
|
|
|
|
|
|
|
- name: Upload binary file (ARM64)
|
|
|
|
copy:
|
2024-05-18 11:09:36 +00:00
|
|
|
src: ../../bin/xmr-nodes-client-linux-arm64
|
|
|
|
dest: /path/to/remote/xmr-nodes/bin/xmr-nodes-client
|
2024-05-06 15:21:46 +00:00
|
|
|
owner: your_user
|
|
|
|
group: your_group
|
|
|
|
mode: 0755
|
2024-05-18 11:09:36 +00:00
|
|
|
when: inventory_hostname in groups['prober'] and ansible_facts['architecture'] == 'aarch64'
|
2024-05-06 15:21:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
- name: Start systemd timer
|
|
|
|
systemd:
|
|
|
|
name: xmr-nodes-prober.timer
|
|
|
|
state: started
|
|
|
|
when: inventory_hostname in groups['prober']
|