4
0
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:
Buster "Silver Eagle" Neece 2022-05-26 20:41:54 -05:00
parent a783f8267a
commit d3b4202176
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
3 changed files with 4 additions and 26 deletions

View File

@ -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"

View File

@ -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

View File

@ -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"