Add new nfs volumes

This commit is contained in:
IamTheFij 2022-08-30 15:14:55 -07:00
parent 0ea02c2034
commit 3d3cc25951

View File

@ -219,6 +219,30 @@
state: mounted state: mounted
fstype: nfs4 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 - name: Install Docker
hosts: nomad_instances hosts: nomad_instances
become: true become: true
@ -248,6 +272,18 @@
group: "root" group: "root"
mode: "0777" mode: "0777"
read_only: true 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 - name: all-volumes
path: /srv/volumes path: /srv/volumes
owner: "root" owner: "root"