Make the share location a var

This commit is contained in:
2018-07-01 13:07:24 -04:00
parent 1837c00186
commit f58851170b
3 changed files with 6 additions and 5 deletions

View File

@@ -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