Add new nfs volumes

This commit is contained in:
IamTheFij 2022-08-30 15:14:55 -07:00
parent 6fe1d472d0
commit 0ef488b06a

View File

@ -219,6 +219,30 @@
state: mounted
fstype: nfs4
- name: Create Media Library RW NFS mount
ansible.posix.mount:
src: 192.168.2.10:/Multimedia
path: /srv/volumes/media-write
opts: proto=tcp,port=2049,rw
state: mounted
fstype: nfs4
- name: Create Download RW NFS mount
ansible.posix.mount:
src: 192.168.2.10:/Download
path: /srv/volumes/download
opts: proto=tcp,port=2049,rw
state: mounted
fstype: nfs4
- name: Create Container NAS RW NFS mount
ansible.posix.mount:
src: 192.168.2.10:/Container
path: /srv/volumes/container
opts: proto=tcp,port=2049,rw
state: mounted
fstype: nfs4
- name: Install Docker
hosts: nomad_instances
become: true
@ -248,6 +272,18 @@
group: "root"
mode: "0777"
read_only: true
- name: media-write
path: /srv/volumes/media-write
owner: "root"
group: "root"
mode: "0777"
read_only: false
- name: download
path: /srv/volumes/download
owner: "root"
group: "root"
mode: "0777"
read_only: false
- name: all-volumes
path: /srv/volumes
owner: "root"