2023-10-13 11:29:51 -06:00
|
|
|
---
|
|
|
|
- name: Deploy EV
|
|
|
|
hosts: kapha
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: Copy build to remote
|
|
|
|
ansible.builtin.copy:
|
2023-10-15 14:27:15 -06:00
|
|
|
src: ../sour.is-paste
|
2023-10-13 11:29:51 -06:00
|
|
|
dest: /usr/local/bin/sour.is-paste
|
2023-10-14 07:54:05 -06:00
|
|
|
mode: u=rwx,g=rx,o=rx
|
2023-10-15 14:27:15 -06:00
|
|
|
owner: root
|
2023-10-13 11:29:51 -06:00
|
|
|
group: root
|
|
|
|
|
|
|
|
- name: Copy build to remote
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: sour.is-paste.service
|
2023-10-14 07:54:05 -06:00
|
|
|
dest: /etc/systemd/system/sour.is-paste.service
|
2023-10-15 14:27:15 -06:00
|
|
|
mode: u=r,g=r,o=r
|
|
|
|
owner: root
|
2023-10-13 11:29:51 -06:00
|
|
|
group: root
|
|
|
|
|
|
|
|
- name: Restart service
|
|
|
|
systemd:
|
2023-10-15 14:27:15 -06:00
|
|
|
name: sour.is-paste
|
|
|
|
enabled: true
|
2023-10-13 11:29:51 -06:00
|
|
|
daemon_reload: true
|
|
|
|
state: restarted
|