diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2020-06-17 07:46:06 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2020-06-17 07:46:06 +0200 |
commit | 0cf1fb01836346b196296ae8f4b2484993124bc5 (patch) | |
tree | 8fe37dae46d14aafaa2abec03d202c55ad579bfd /roles/ands_storage/tasks/nfs.yml | |
parent | 1eda0736a8f72076eca51faf543b3a825359b96e (diff) | |
download | itm-master.tar.gz itm-master.tar.bz2 itm-master.tar.xz itm-master.zip |
Diffstat (limited to 'roles/ands_storage/tasks/nfs.yml')
-rw-r--r-- | roles/ands_storage/tasks/nfs.yml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/roles/ands_storage/tasks/nfs.yml b/roles/ands_storage/tasks/nfs.yml index 111992e..98a23be 100644 --- a/roles/ands_storage/tasks/nfs.yml +++ b/roles/ands_storage/tasks/nfs.yml @@ -7,9 +7,12 @@ - name: set mountpoints mount: name=/mnt/ands src="{{ ands_nfs_server }}:/mnt/ands" fstype=nfs4 opts=defaults,minorversion=1,_netdev,nofail,soft,nodiratime,noatime dump=0 passno=0 state="{{ ands_mount_nfs | default(false) | ternary ('mounted', 'absent') }}" - when: ands_nfs_server is defined + when: + - ands_nfs_server is defined + - ands_nfs_server | default(None) not in ansible_all_ipv4_addresses - name: set mountpoints mount: name=/mnt/pdv src="{{ ands_pdv_server }}:/mnt/pdv" fstype=nfs opts=defaults,_netdev,nofail,soft,nodiratime,noatime dump=0 passno=0 state=mounted - when: ands_pdv_server is defined - + when: + - ands_pdv_server is defined + - ands_pdv_server | default(None) not in ansible_all_ipv4_addresses |