dotfiles/.ansible/roles/media_server/tasks/main.yaml

45 lines
950 B
YAML
Raw Normal View History

2019-10-12 19:50:49 +01:00
- name: "Media Server"
tags:
- mediaserver
block:
- 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
- name: "Media Server: directories"
2019-10-16 22:13:28 +01:00
tags:
- config
file:
path: "{{ item }}"
2019-10-16 22:13:28 +01:00
state: directory
owner: "media"
group: "media"
loop:
- "/srv/app/docker/mediaserver"
- "/srv/app/docker/mediaserver/config"
2019-10-16 22:13:28 +01:00
become: yes
- 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"
mode: "0400"
2019-10-16 22:13:28 +01:00
become: yes