From 60d95e044aebf471bf5f1202a963684bdd2c61a2 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 22 Feb 2022 10:11:21 -0800 Subject: [PATCH] + mstream basic setup --- docker-host/setup/tasks/mstream.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docker-host/setup/tasks/mstream.yml diff --git a/docker-host/setup/tasks/mstream.yml b/docker-host/setup/tasks/mstream.yml new file mode 100644 index 0000000..12a5d74 --- /dev/null +++ b/docker-host/setup/tasks/mstream.yml @@ -0,0 +1,27 @@ +--- +- hosts: leftcoastlab + tasks: + - name: Create Mstream directories + file: + name: "{{item}}" + state: directory + loop: + - /opt/mstream/data + - /opt/mstream/music + + - name: Create the docker container + community.docker.docker_container: + name: mstream + image: lscr.io/linuxserver/mstream + restart_policy: always + recreate: yes + volumes: + - /opt/mstream/data:/config + - /opt/mstream/music:/music + env: + PGID: 1000 + PUID: 1000 + ports: + - "6789:3000" + +