ansible/roles/www/tasks/spaceapi.yaml

24 lines
546 B
YAML

---
- name: Clone spaceapi source
ansible.builtin.git:
repo: https://github.com/bitlair/spaceapi.git
version: main
dest: /opt/spaceapi
accept_hostkey: yes
notify: restart spaceapi
- name: Install spaceapi service file
ansible.builtin.template:
src: spaceapi.service
dest: /etc/systemd/system/spaceapi.service
owner: root
group: root
mode: 0644
notify: restart spaceapi
- name: Enable spaceapi
ansible.builtin.systemd:
name: spaceapi
state: started
enabled: true
daemon_reload: true