mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-14 13:16:37 +00:00
More Ansible fixes.
This commit is contained in:
parent
a783f8267a
commit
d3b4202176
|
@ -1,9 +1,7 @@
|
|||
---
|
||||
- name: Enable and restart all core services
|
||||
- name: Enable and restart Supervisord
|
||||
service:
|
||||
name: "{{ item }}"
|
||||
name: "supervisor"
|
||||
enabled: true
|
||||
state: restarted
|
||||
ignore_errors: true
|
||||
with_items:
|
||||
- "supervisord"
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
- name: Install supervisord from repo
|
||||
apt:
|
||||
name: supervisor
|
||||
register: supervisord_install
|
||||
|
||||
- name: Change supervisord configuration
|
||||
template:
|
||||
|
@ -10,27 +9,8 @@
|
|||
dest: /etc/supervisor/supervisord.conf
|
||||
force: true
|
||||
mode: 0644
|
||||
register: supervisord_conf
|
||||
|
||||
- name: Remove old core supervisord configuration
|
||||
file:
|
||||
path: /etc/supervisor/conf.d/core.conf
|
||||
state: absent
|
||||
register: supervisord_core
|
||||
|
||||
- name: Kill legacy radio processes (if upgrading from older version)
|
||||
command: >-
|
||||
killall -q -9 icecast2 sc_serv liquidsoap
|
||||
ignore_errors: true
|
||||
when: supervisord_install.changed
|
||||
|
||||
- name: Trigger manual restart of supervisord (if not already running)
|
||||
service:
|
||||
name: supervisor
|
||||
enabled: true
|
||||
state: restarted
|
||||
when: >-
|
||||
supervisord_install is changed
|
||||
or supervisord_conf is changed
|
||||
or supervisord_core is changed
|
||||
ignore_errors: true
|
||||
|
|
|
@ -51,11 +51,11 @@
|
|||
- role: "dbip"
|
||||
when: update_revision|int < 51
|
||||
|
||||
- role: "services"
|
||||
|
||||
- role: "azuracast-cron"
|
||||
when: update_revision|int < 83
|
||||
|
||||
- role: "services"
|
||||
|
||||
- role: "azuracast-build"
|
||||
|
||||
- role: "azuracast-setup"
|
||||
|
|
Loading…
Reference in New Issue
Block a user