xmr-remote-nodes/deployment/ansible/deploy-prober.example.yml
ditatompel 5fae3d565a
chore: Rename tools directory to deployment
The `tools` directory contains example ansible playbook, systemd
example, and Nginx configuration example for the server.

The directory name `deployment` for that stuffs much more suitable.
2024-05-30 12:02:11 +07:00

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']