xmr-remote-nodes/tools/ansible/deploy-server.example.yml
ditatompel 35b73bd8e5
Make sure user, group, and permission is set
User need to specify user and group ownership of the binary file from
the ansible playbook config.
2024-05-06 22:12:56 +07:00

24 lines
613 B
YAML

---
- 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
- name: Start systemd daemon
systemd:
name: xmr-nodes-server.service
state: started
when: inventory_hostname in groups['server']