go-tools/.ansible/playbook.yml

25 lines
457 B
YAML

---
- name: Deploy EV
hosts: lavana
tasks:
- name: Copy build to remote
ansible.builtin.copy:
src: ../build/ev
dest: /usr/local/bin/ev
owner: root
group: root
- name: Copy build to remote
ansible.builtin.copy:
src: ev.service
dest: /etc/systemd/system/ev.service
owner: root
group: root
- name: Restart service
systemd:
name: ev
enabled: true
state: restarted