mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Ansible output that educates AzuraCast implementers
This commit is contained in:
parent
ba9b67028a
commit
8b8413ad7a
1 changed files with 10 additions and 9 deletions
|
@ -1,9 +1,9 @@
|
||||||
- name: AzuraCast - Make AzuraCast config directory
|
- name: AzuraCast - Make config directory {{ azuracast_host_dir }}
|
||||||
file:
|
file:
|
||||||
path: "{{ azuracast_host_dir }}"
|
path: "{{ azuracast_host_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: AzuraCast - Copy over .env template to AzuraCast config directory
|
- name: AzuraCast - Install {{ azuracast_host_dir }}/.env from template
|
||||||
template:
|
template:
|
||||||
src: env.j2
|
src: env.j2
|
||||||
dest: "{{ azuracast_host_dir }}/.env"
|
dest: "{{ azuracast_host_dir }}/.env"
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
- name: AzuraCast - Copy over docker-compose.override.yml template to AzuraCast config directory
|
- name: AzuraCast - Install {{ azuracast_host_dir }}/docker-compose.override.yml from template
|
||||||
template:
|
template:
|
||||||
src: docker-compose.override.yml.j2
|
src: docker-compose.override.yml.j2
|
||||||
dest: "{{ azuracast_host_dir }}/docker-compose.override.yml"
|
dest: "{{ azuracast_host_dir }}/docker-compose.override.yml"
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
- name: AzuraCast - Download docker.sh script
|
- name: AzuraCast - Download {{ docker_sh_url }} to {{ azuracast_host_dir }}
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ docker_sh_url }}"
|
url: "{{ docker_sh_url }}"
|
||||||
dest: "{{ azuracast_host_dir }}/"
|
dest: "{{ azuracast_host_dir }}/"
|
||||||
|
@ -27,12 +27,13 @@
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when: internet_available | bool
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: AzuraCast - Download docker-compose.yml
|
- name: AzuraCast - Download AzuraCast's docker-compose.yml sample from GitHub to {{ azuracast_host_dir }}
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ docker_compose_url }}"
|
url: "{{ docker_compose_url }}"
|
||||||
dest: "{{ azuracast_host_dir }}/docker-compose.yml"
|
dest: "{{ azuracast_host_dir }}/docker-compose.yml"
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: AzuraCast - Make changes to docker.sh script so it runs headless
|
- name: AzuraCast - Make changes to docker.sh script so it runs headless
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
@ -41,18 +42,18 @@
|
||||||
line: "\\1reply='Y'"
|
line: "\\1reply='Y'"
|
||||||
backrefs: yes
|
backrefs: yes
|
||||||
|
|
||||||
- name: AzuraCast - Make docker container directory
|
- name: AzuraCast - Make directory {{ docker_container_dir }}
|
||||||
file:
|
file:
|
||||||
path: "{{ docker_container_dir }}"
|
path: "{{ docker_container_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: AzuraCast - Link docker container directory
|
- name: AzuraCast - Symlink /var/lib/docker -> {{ docker_container_dir }}
|
||||||
file:
|
file:
|
||||||
src: "{{ docker_container_dir }}"
|
src: "{{ docker_container_dir }}"
|
||||||
dest: "/var/lib/docker"
|
dest: /var/lib/docker
|
||||||
state: link
|
state: link
|
||||||
|
|
||||||
- name: Change default port number ranges 8xxx:8xxx to Nxxx:Nxxx icecast-stations in docker-compose.yml (N - azuracast_port_range_prefix)
|
- name: Change default port number range 8xxx:8xxx to {{ azuracast_port_range_prefix }}xxx:{{ azuracast_port_range_prefix }}xxx icecast-stations in docker-compose.yml
|
||||||
replace:
|
replace:
|
||||||
path: "{{ azuracast_host_dir }}/docker-compose.yml"
|
path: "{{ azuracast_host_dir }}/docker-compose.yml"
|
||||||
regexp: "^( *- \\')8([0-9]{3})\\:8([0-9]{3}\\'.*)$"
|
regexp: "^( *- \\')8([0-9]{3})\\:8([0-9]{3}\\'.*)$"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue