go-tools/.ansible/playbook.yml
xuu 87170420e4
All checks were successful
Go Bump / bump (push) Successful in 40s
Go Test / test (push) Successful in 51s
Deploy / deploy (push) Successful in 1m44s
build: use go install
2023-10-15 11:45:47 -06:00

25 lines
463 B
YAML

---
- name: Deploy EV
hosts: lavana
tasks:
- name: Copy build to remote
ansible.builtin.copy:
src: ../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