xmr-remote-nodes/tools/ansible/deploy-server.example.yml

25 lines
613 B
YAML
Raw Normal View History

2024-05-06 13:51:44 +00:00
---
- name: Deploy and Restart Services
hosts: all
become: true
tasks:
- name: Stop server systemd daemon
systemd:
name: xmr-nodes-server.service
state: stopped
when: inventory_hostname in groups['server']
- name: Upload binary file
copy:
src: ../../bin/xmr-nodes-static-linux-amd64
dest: /path/to/remote/server/bin
Owner: your_user
Group: your_group
mode: 0755
2024-05-06 13:51:44 +00:00
- name: Start systemd daemon
systemd:
name: xmr-nodes-server.service
state: started
when: inventory_hostname in groups['server']