Use new NAS paths
This commit is contained in:
parent
15ea178e8e
commit
061c375652
@ -192,26 +192,18 @@
|
|||||||
hosts: nomad_instances
|
hosts: nomad_instances
|
||||||
become: true
|
become: true
|
||||||
vars:
|
vars:
|
||||||
shared_nfs_mounts: []
|
shared_nfs_mounts:
|
||||||
# - src: 192.168.2.10:/Multimedia
|
- src: 192.168.2.10:/Media
|
||||||
# path: /srv/volumes/media-read
|
path: /srv/volumes/media-read
|
||||||
# opts: proto=tcp,port=2049,ro
|
opts: proto=tcp,port=2049,ro
|
||||||
#
|
|
||||||
# - src: 192.168.2.10:/Multimedia
|
- src: 192.168.2.10:/Media
|
||||||
# path: /srv/volumes/media-write
|
path: /srv/volumes/media-write
|
||||||
# opts: proto=tcp,port=2049,rw
|
opts: proto=tcp,port=2049,rw
|
||||||
#
|
|
||||||
# - src: 192.168.2.10:/Photos
|
- src: 192.168.2.10:/Photos
|
||||||
# path: /srv/volumes/photos
|
path: /srv/volumes/photos
|
||||||
# opts: proto=tcp,port=2049,rw
|
opts: proto=tcp,port=2049,rw
|
||||||
#
|
|
||||||
# - src: 192.168.2.10:/Download
|
|
||||||
# path: /srv/volumes/download
|
|
||||||
# opts: proto=tcp,port=2049,rw
|
|
||||||
#
|
|
||||||
# - src: 192.168.2.10:/Container
|
|
||||||
# path: /srv/volumes/container
|
|
||||||
# opts: proto=tcp,port=2049,rw
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install nfs
|
- name: Install nfs
|
||||||
@ -234,43 +226,34 @@
|
|||||||
become: true
|
become: true
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
shared_host_volumes: []
|
shared_host_volumes:
|
||||||
# - name: media-read
|
- name: media-read
|
||||||
# path: /srv/volumes/media-write
|
path: /srv/volumes/media-write
|
||||||
# read_only: true
|
read_only: true
|
||||||
# - name: media-write
|
- name: media-write
|
||||||
# path: /srv/volumes/media-write
|
path: /srv/volumes/media-write
|
||||||
# owner: "root"
|
owner: "root"
|
||||||
# group: "root"
|
group: "root"
|
||||||
# mode: "0755"
|
mode: "0755"
|
||||||
# read_only: false
|
read_only: false
|
||||||
|
- name: media-downloads
|
||||||
|
path: /srv/volumes/media-write/Downloads
|
||||||
|
read_only: false
|
||||||
|
- name: photoprism-media
|
||||||
|
path: /srv/volumes/photos/Photoprism
|
||||||
|
read_only: false
|
||||||
# - name: tv-sonarr
|
# - name: tv-sonarr
|
||||||
# path: "/srv/volumes/media-write/TV Shows"
|
# path: "/srv/volumes/media-write/TV Shows"
|
||||||
# owner: 1001
|
# owner: 1001
|
||||||
# group: 100
|
# group: 100
|
||||||
# mode: "0755"
|
# mode: "0755"
|
||||||
# read_only: false
|
# read_only: false
|
||||||
# - name: download
|
- name: all-volumes
|
||||||
# path: /srv/volumes/download
|
path: /srv/volumes
|
||||||
# owner: 1001
|
owner: "root"
|
||||||
# group: 100
|
group: "root"
|
||||||
# mode: "0755"
|
mode: "0755"
|
||||||
# read_only: false
|
read_only: false
|
||||||
# - name: nzbget-data
|
|
||||||
# path: /srv/volumes/container/nzbget/config
|
|
||||||
# read_only: false
|
|
||||||
# - name: gitea-data
|
|
||||||
# path: /srv/volumes/container/gitea
|
|
||||||
# read_only: false
|
|
||||||
# - name: photoprism-media
|
|
||||||
# path: /srv/volumes/photos/Photoprism
|
|
||||||
# read_only: false
|
|
||||||
# - name: all-volumes
|
|
||||||
# path: /srv/volumes
|
|
||||||
# owner: "root"
|
|
||||||
# group: "root"
|
|
||||||
# mode: "0755"
|
|
||||||
# read_only: false
|
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- name: ansible-nomad
|
- name: ansible-nomad
|
||||||
|
@ -19,10 +19,10 @@ job "ipdvr" {
|
|||||||
source = "nzbget-data"
|
source = "nzbget-data"
|
||||||
}
|
}
|
||||||
|
|
||||||
volume "download" {
|
volume "media-downloads" {
|
||||||
type = "host"
|
type = "host"
|
||||||
read_only = false
|
read_only = false
|
||||||
source = "download"
|
source = "media-downloads"
|
||||||
}
|
}
|
||||||
|
|
||||||
service {
|
service {
|
||||||
@ -80,7 +80,7 @@ job "ipdvr" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
volume_mount {
|
volume_mount {
|
||||||
volume = "download"
|
volume = "media-downloads"
|
||||||
destination = "/downloads"
|
destination = "/downloads"
|
||||||
read_only = false
|
read_only = false
|
||||||
}
|
}
|
||||||
@ -109,16 +109,10 @@ job "ipdvr" {
|
|||||||
source = "sonarr-data"
|
source = "sonarr-data"
|
||||||
}
|
}
|
||||||
|
|
||||||
volume "tv-sonarr" {
|
volume "media-write" {
|
||||||
type = "host"
|
type = "host"
|
||||||
read_only = false
|
read_only = false
|
||||||
source = "tv-sonarr"
|
source = "media-write"
|
||||||
}
|
|
||||||
|
|
||||||
volume "download" {
|
|
||||||
type = "host"
|
|
||||||
read_only = false
|
|
||||||
source = "download"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
service {
|
service {
|
||||||
@ -180,14 +174,8 @@ job "ipdvr" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
volume_mount {
|
volume_mount {
|
||||||
volume = "tv-sonarr"
|
volume = "media-write"
|
||||||
destination = "/tv"
|
destination = "/media"
|
||||||
read_only = false
|
|
||||||
}
|
|
||||||
|
|
||||||
volume_mount {
|
|
||||||
volume = "download"
|
|
||||||
destination = "/downloads"
|
|
||||||
read_only = false
|
read_only = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user