mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Initial checkin of azuracast role
This commit is contained in:
parent
390d98e478
commit
b462cfb048
10 changed files with 98 additions and 0 deletions
|
@ -3,6 +3,12 @@
|
|||
- name: ...IS BEGINNING ====================================
|
||||
command: echo
|
||||
|
||||
- name: AZURACAST
|
||||
include_role:
|
||||
name: azuracast
|
||||
when: azuracast_install | bool
|
||||
tags: azuracast
|
||||
|
||||
- name: DOKUWIKI
|
||||
include_role:
|
||||
name: dokuwiki
|
||||
|
|
15
roles/azuracast/README.rst
Normal file
15
roles/azuracast/README.rst
Normal file
|
@ -0,0 +1,15 @@
|
|||
==========
|
||||
Azuracast README
|
||||
==========
|
||||
|
||||
This 'azuracast' playbook adds `Azuracast <https://azuracast.com/>`_ to Internet-in-a-Box (IIAB) for network radio station fnctionality.
|
||||
|
||||
Currently, this will only run on Ubuntu 18.04, Debian 9, Debian 10. This will not run on raspberry pi.
|
||||
|
||||
Using It
|
||||
--------
|
||||
|
||||
Prior to installing IIAB, make sure your `/etc/iiab/local_vars.yml <http://wiki.laptop.org/go/IIAB/FAQ#What_is_local_vars.yml_and_how_do_I_customize_it.3F>`_ contains::
|
||||
|
||||
azuracast_install: True
|
||||
azuracast_enabled: True
|
15
roles/azuracast/defaults/main.yml
Normal file
15
roles/azuracast/defaults/main.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
# A full-featured online radio station suite.
|
||||
# Works on Ubuntu 18.04, Debian 9, 10. Uses docker
|
||||
|
||||
# azuracast_install: False
|
||||
# azuracast_enabled: False
|
||||
|
||||
# All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml
|
||||
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
|
||||
|
||||
azuracast_http_port: 8080
|
||||
azuracast_https_port: 8443
|
||||
|
||||
docker_sh_url: https://raw.githubusercontent.com/AzuraCast/AzuraCast/master/docker.sh
|
||||
docker_container_dir: /library/docker
|
||||
azuracast_host_dir: /opt/azuracast
|
43
roles/azuracast/tasks/install.yml
Normal file
43
roles/azuracast/tasks/install.yml
Normal file
|
@ -0,0 +1,43 @@
|
|||
- name: Azuracast - Make Azuracast config directory
|
||||
file:
|
||||
path: "{{ azuracast_host_dir }}"
|
||||
state: directory
|
||||
|
||||
- name: Azuracast - Copy over .env template to Azuracast config directory
|
||||
template:
|
||||
src: env.j2
|
||||
dest: "{{ azuracast_host_dir }}/.env"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Azuracast - Download docker.sh script
|
||||
get_url:
|
||||
url: "{{ docker_sh_url }}"
|
||||
dest: "{{ azuracast_host_dir }}/"
|
||||
timeout: "{{ download_timeout }}"
|
||||
mode: 0755
|
||||
when: internet_available | bool
|
||||
|
||||
- name: Azuracast - Make changes to docker.sh script so it runs headless
|
||||
lineinfile:
|
||||
path: "{{ azuracast_host_dir }}/docker.sh"
|
||||
regexp: "^(.*)read reply.*"
|
||||
line: "reply='Y'"
|
||||
backrefs: yes
|
||||
|
||||
- name: Azuracast - Make docker container directory
|
||||
file:
|
||||
path: "{{ docker_container_dir }}"
|
||||
state: directory
|
||||
|
||||
- name: Azuracast - Link docker container directory
|
||||
file:
|
||||
src: "{{ docker_container_dir }}"
|
||||
dest: "/var/lib/docker"
|
||||
state: link
|
||||
|
||||
- name: Azuracast - Run the installer
|
||||
shell: "/bin/bash docker.sh install"
|
||||
args:
|
||||
chdir: "{{ azuracast_host_dir }}"
|
3
roles/azuracast/tasks/main.yml
Normal file
3
roles/azuracast/tasks/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
- name: Azuracast install
|
||||
include_tasks: install.yml
|
||||
when: azuracast_install
|
4
roles/azuracast/templates/env.j2
Normal file
4
roles/azuracast/templates/env.j2
Normal file
|
@ -0,0 +1,4 @@
|
|||
COMPOSE_PROJECT_NAME=azuracast
|
||||
|
||||
AZURACAST_HTTP_PORT={{ azuracast_http_port }}
|
||||
AZURACAST_HTTPS_PORT={{ azuracast_https_port }}
|
|
@ -285,6 +285,9 @@ idmgr_enables: False
|
|||
|
||||
# 6-GENERIC-APPS
|
||||
|
||||
azuracast_install: True
|
||||
azuracast_enabled: True
|
||||
|
||||
dokuwiki_install: False
|
||||
dokuwiki_enabled: False
|
||||
|
||||
|
|
|
@ -178,6 +178,9 @@ iiab_usb_lib_show_all: True
|
|||
|
||||
# 6-GENERIC-APPS
|
||||
|
||||
azuracast_install: True
|
||||
azuracast_enabled: True
|
||||
|
||||
dokuwiki_install: True
|
||||
dokuwiki_enabled: True
|
||||
|
||||
|
|
|
@ -178,6 +178,9 @@ iiab_usb_lib_show_all: True
|
|||
|
||||
# 6-GENERIC-APPS
|
||||
|
||||
azuracast_install: True
|
||||
azuracast_enabled: True
|
||||
|
||||
dokuwiki_install: False
|
||||
dokuwiki_enabled: False
|
||||
|
||||
|
|
|
@ -178,6 +178,9 @@ iiab_usb_lib_show_all: True
|
|||
|
||||
# 6-GENERIC-APPS
|
||||
|
||||
azuracast_install: False
|
||||
azuracast_enabled: False
|
||||
|
||||
dokuwiki_install: False
|
||||
dokuwiki_enabled: False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue