From 3d3cc25951df505ef89963dd271baa3e5ce34da3 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 30 Aug 2022 15:14:55 -0700 Subject: [PATCH] Add new nfs volumes --- setup-cluster.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/setup-cluster.yml b/setup-cluster.yml index c28dabf..1d34cc4 100644 --- a/setup-cluster.yml +++ b/setup-cluster.yml @@ -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"