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

56 lines
1.1 KiB
YAML
Raw Normal View History

2019-10-12 19:50:49 +01:00
- name: "Media Server"
tags:
- mediaserver
block:
- name: "Media Server: Group"
tags:
- install
2019-10-20 10:13:56 +01:00
- docker
2019-10-12 19:50:49 +01:00
group:
name: "media"
become: yes
- name: "Media Server: User"
tags:
- install
2019-10-20 10:13:56 +01:00
- docker
2019-10-12 19:50:49 +01:00
user:
name: "media"
group: "media"
comment: "Media Server user"
expires: -1
become: yes
2019-10-16 22:13:28 +01:00
- name: "Media Server: Docker: packages"
tags:
- install
- docker
package:
name: "{{ item }}"
state: latest
loop:
- "docker.io"
- "docker-compose"
become: yes
- name: "Media Server: Docker: directories"
tags:
- config
- docker
file:
path: "/srv/app/docker/mediaserver/config"
state: directory
owner: "media"
group: "media"
recurse: yes
become: yes
- name: "Media Server: Docker: config"
tags:
- config
- docker
copy:
dest: "/srv/app/docker/mediaserver/compose.yaml"
src: "files/docker-compose.yaml"
become: yes