mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
- 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 }}"
|