2019-10-12 19:50:49 +01:00
|
|
|
- name: "Media Server"
|
|
|
|
tags:
|
|
|
|
- mediaserver
|
|
|
|
block:
|
2019-10-20 15:26:27 +01:00
|
|
|
- include: roles/common_server/tasks/docker.yaml
|
|
|
|
|
2019-10-12 19:50:49 +01:00
|
|
|
- name: "Media Server: Group"
|
|
|
|
tags:
|
|
|
|
- install
|
|
|
|
group:
|
|
|
|
name: "media"
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
- name: "Media Server: User"
|
|
|
|
tags:
|
|
|
|
- install
|
|
|
|
user:
|
|
|
|
name: "media"
|
|
|
|
group: "media"
|
|
|
|
comment: "Media Server user"
|
|
|
|
expires: -1
|
|
|
|
become: yes
|
|
|
|
|
2019-10-20 15:26:27 +01:00
|
|
|
- name: "Media Server: directories"
|
2019-10-16 22:13:28 +01:00
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
file:
|
2019-10-20 15:26:27 +01:00
|
|
|
path: "{{ item }}"
|
2019-10-16 22:13:28 +01:00
|
|
|
state: directory
|
|
|
|
owner: "media"
|
|
|
|
group: "media"
|
2019-10-20 15:26:27 +01:00
|
|
|
loop:
|
|
|
|
- "/srv/app/docker/mediaserver"
|
|
|
|
- "/srv/app/docker/mediaserver/config"
|
2019-10-16 22:13:28 +01:00
|
|
|
become: yes
|
|
|
|
|
2019-10-20 15:26:27 +01:00
|
|
|
- name: "Media Server: Docker: compose.yaml"
|
2019-10-16 22:13:28 +01:00
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
copy:
|
|
|
|
dest: "/srv/app/docker/mediaserver/compose.yaml"
|
|
|
|
src: "files/docker-compose.yaml"
|
2019-10-20 15:26:27 +01:00
|
|
|
mode: "0400"
|
2019-10-16 22:13:28 +01:00
|
|
|
become: yes
|