Make sure directories exist
This commit is contained in:
parent
50ffe15dcd
commit
58fd1aa430
|
@ -1,10 +1,19 @@
|
||||||
- name: run jellyfin container
|
- name: ensure directories exist
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
|
loop:
|
||||||
|
- "{{ data_folder }}/jellyfin"
|
||||||
|
- "{{ media.tv }}"
|
||||||
|
- "{{ media.movies }}"
|
||||||
|
- name: run container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: 'jellyfin'
|
name: 'jellyfin'
|
||||||
image: linuxserver/jellyfin
|
image: linuxserver/jellyfin
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ data_folder }}/jellyfin:/config"
|
- "{{ data_folder }}/jellyfin:/config"
|
||||||
- "{{ media.tv }}:/data/tvshows"
|
- "{{ media.tv }}:/data/tv"
|
||||||
- "{{ media.movies }}:/data/movies"
|
- "{{ media.movies }}:/data/movies"
|
||||||
ports:
|
ports:
|
||||||
- "8096:8096"
|
- "8096:8096"
|
||||||
|
|
|
@ -1,8 +1,21 @@
|
||||||
- name: run nginx container
|
- name: ensure directories exist
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
|
loop:
|
||||||
|
- "{{ nginx_confd_folder }}"
|
||||||
|
- name: copy .conf file
|
||||||
|
template:
|
||||||
|
src: nginx.conf.j2
|
||||||
|
dest: "{{ data_folder }}/nginx/nginx.conf"
|
||||||
|
mode: '0755'
|
||||||
|
- name: run container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: 'nginx'
|
name: 'nginx'
|
||||||
image: nginx
|
image: nginx
|
||||||
volumes:
|
volumes:
|
||||||
|
- "{{ data_folder }}/nginx/nginx.conf:/etc/nginx/nginx.conf"
|
||||||
- "{{ nginx_confd_folder }}:/etc/nginx/conf.d"
|
- "{{ nginx_confd_folder }}:/etc/nginx/conf.d"
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
|
|
Loading…
Reference in New Issue