mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
azuracast/tasks/main.yml: skip_role_on_error
This commit is contained in:
parent
624c4d8aaa
commit
e9564cab36
1 changed files with 25 additions and 18 deletions
|
@ -19,25 +19,32 @@
|
||||||
quiet: yes
|
quiet: yes
|
||||||
|
|
||||||
|
|
||||||
- name: Install AzuraCast if 'azuracast_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
|
- block:
|
||||||
include_tasks: install.yml
|
|
||||||
when: azuracast_installed is undefined
|
|
||||||
|
|
||||||
|
- name: Install AzuraCast if 'azuracast_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
|
||||||
|
include_tasks: install.yml
|
||||||
|
when: azuracast_installed is undefined
|
||||||
|
|
||||||
# TODO figure out what to turn off/on for AzuraCast
|
# TODO figure out what to turn off/on for AzuraCast
|
||||||
# - include_tasks: enable-or-disable.yml
|
# - include_tasks: enable-or-disable.yml
|
||||||
|
|
||||||
|
- name: Add 'azuracast' variable values to {{ iiab_ini_file }}
|
||||||
|
ini_file:
|
||||||
|
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
|
||||||
|
section: azuracast
|
||||||
|
option: "{{ item.option }}"
|
||||||
|
value: "{{ item.value | string }}"
|
||||||
|
with_items:
|
||||||
|
- option: name
|
||||||
|
value: azuracast
|
||||||
|
- option: description
|
||||||
|
value: '"AzuraCast is a self-hosted, all-in-one radio station platform. Use AzuraCast to schedule podcasts, music, and even do live streaming of audio content. A variety of streaming formats are supported."'
|
||||||
|
- option: enabled
|
||||||
|
value: "{{ azuracast_enabled }}"
|
||||||
|
|
||||||
- name: Add 'azuracast' variable values to {{ iiab_ini_file }}
|
rescue:
|
||||||
ini_file:
|
|
||||||
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
|
- name: 'SEE ERROR ABOVE (skip_role_on_error: {{ skip_role_on_error }})'
|
||||||
section: azuracast
|
fail:
|
||||||
option: "{{ item.option }}"
|
msg: ""
|
||||||
value: "{{ item.value | string }}"
|
when: not skip_role_on_error
|
||||||
with_items:
|
|
||||||
- option: name
|
|
||||||
value: azuracast
|
|
||||||
- option: description
|
|
||||||
value: '"AzuraCast is a self-hosted, all-in-one radio station platform. Use AzuraCast to schedule podcasts, music, and even do live streaming of audio content. A variety of streaming formats are supported."'
|
|
||||||
- option: enabled
|
|
||||||
value: "{{ azuracast_enabled }}"
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue