Make the share location a var
This commit is contained in:
@@ -109,12 +109,12 @@
|
||||
lineinfile: dest=/etc/fstab
|
||||
regexp=\/data
|
||||
state=present
|
||||
line="{{ nfs_location }}:/volumeUSB1/usbshare/raw-files/fileserver/shares/lab-data /data nfs defaults,nolock 0 0"
|
||||
line="{{ nfs_location }}:{{ nfs_share }}/raw-files/fileserver/shares/lab-data /data nfs defaults,nolock 0 0"
|
||||
|
||||
- name: Mount USB lab data directory
|
||||
mount:
|
||||
path: /data
|
||||
src: 10.0.0.150:/volumeUSB1/usbshare/raw-files/fileserver/shares/lab-data
|
||||
src: 10.0.0.150:{{ nfs_share }}/raw-files/fileserver/shares/lab-data
|
||||
state: mounted
|
||||
fstype: nfs
|
||||
ignore_errors: true
|
||||
|
||||
Reference in New Issue
Block a user