Add a role to install Trollibox
This commit is contained in:
parent
1c9a0b37d3
commit
f24e8b6436
4 changed files with 36 additions and 0 deletions
17
roles/music/handlers/main.yaml
Normal file
17
roles/music/handlers/main.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
- name: reload nginx
|
||||
systemd:
|
||||
name: nginx
|
||||
state: reloaded
|
||||
|
||||
- name: rebuild trollibox
|
||||
command: ./build.sh
|
||||
args:
|
||||
chdir: /opt/trollibox
|
||||
environment: { RELEASE: 1 }
|
||||
|
||||
- name: restart trollibox
|
||||
systemd:
|
||||
name: trollibox
|
||||
state: restarted
|
||||
daemon_reload: true
|
Loading…
Add table
Add a link
Reference in a new issue