Use to the common Docker task for the mediaserver setup
This commit is contained in:
parent
8bd84e52ff
commit
29e6782efa
|
@ -2,10 +2,11 @@
|
||||||
tags:
|
tags:
|
||||||
- mediaserver
|
- mediaserver
|
||||||
block:
|
block:
|
||||||
|
- include: roles/common_server/tasks/docker.yaml
|
||||||
|
|
||||||
- name: "Media Server: Group"
|
- name: "Media Server: Group"
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
- docker
|
|
||||||
group:
|
group:
|
||||||
name: "media"
|
name: "media"
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -13,7 +14,6 @@
|
||||||
- name: "Media Server: User"
|
- name: "Media Server: User"
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
- docker
|
|
||||||
user:
|
user:
|
||||||
name: "media"
|
name: "media"
|
||||||
group: "media"
|
group: "media"
|
||||||
|
@ -21,35 +21,24 @@
|
||||||
expires: -1
|
expires: -1
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
- name: "Media Server: Docker: packages"
|
- name: "Media Server: directories"
|
||||||
tags:
|
|
||||||
- install
|
|
||||||
- docker
|
|
||||||
package:
|
|
||||||
name: "{{ item }}"
|
|
||||||
state: latest
|
|
||||||
loop:
|
|
||||||
- "docker.io"
|
|
||||||
- "docker-compose"
|
|
||||||
become: yes
|
|
||||||
|
|
||||||
- name: "Media Server: Docker: directories"
|
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- docker
|
|
||||||
file:
|
file:
|
||||||
path: "/srv/app/docker/mediaserver/config"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "media"
|
owner: "media"
|
||||||
group: "media"
|
group: "media"
|
||||||
recurse: yes
|
loop:
|
||||||
|
- "/srv/app/docker/mediaserver"
|
||||||
|
- "/srv/app/docker/mediaserver/config"
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
- name: "Media Server: Docker: config"
|
- name: "Media Server: Docker: compose.yaml"
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- docker
|
|
||||||
copy:
|
copy:
|
||||||
dest: "/srv/app/docker/mediaserver/compose.yaml"
|
dest: "/srv/app/docker/mediaserver/compose.yaml"
|
||||||
src: "files/docker-compose.yaml"
|
src: "files/docker-compose.yaml"
|
||||||
|
mode: "0400"
|
||||||
become: yes
|
become: yes
|
||||||
|
|
Loading…
Reference in a new issue