25 lines
469 B
YAML
25 lines
469 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
|