forked from bitlair/ansible
Add www role
This commit is contained in:
parent
1bab3d478d
commit
03780abf01
12 changed files with 313 additions and 0 deletions
24
roles/www/tasks/spaceapi.yaml
Normal file
24
roles/www/tasks/spaceapi.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
- name: Clone spaceapi source
|
||||
git:
|
||||
repo: https://github.com/bitlair/spaceapi.git
|
||||
version: master
|
||||
dest: /opt/spaceapi
|
||||
accept_hostkey: yes
|
||||
notify: restart spaceapi
|
||||
|
||||
- name: Install spaceapi service file
|
||||
template:
|
||||
src: spaceapi.service
|
||||
dest: /etc/systemd/system/spaceapi.service
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: restart spaceapi
|
||||
|
||||
- name: Enable spaceapi
|
||||
systemd:
|
||||
name: spaceapi
|
||||
state: started
|
||||
enabled: true
|
||||
daemon_reload: true
|
Loading…
Add table
Add a link
Reference in a new issue