From 72068c18fa87ee9052a355b41c3e1255dc868ac7 Mon Sep 17 00:00:00 2001 From: shahaan <shahaan@gmail.com> Date: Tue, 20 Jan 2015 16:12:19 +1100 Subject: [PATCH] Some minor chnages to the client --- roles/nfs-client/tasks/mountFileSystem.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/nfs-client/tasks/mountFileSystem.yml b/roles/nfs-client/tasks/mountFileSystem.yml index ae6577a..8d62f72 100644 --- a/roles/nfs-client/tasks/mountFileSystem.yml +++ b/roles/nfs-client/tasks/mountFileSystem.yml @@ -1,13 +1,13 @@ --- -- name: "Check mount" - shell: mount | grep "{{ item.name }}" - with_items: exportList - register: result +#- name: "Check mount" +# shell: mount | grep {{ item.name }} +# with_items: exportList +# register: result - name: "Mounting NFS mounts" - mount: "name={{ item.name }} src={{ item.nfsServerIp }}:{{ item.src }} fstype={{ item.fstype }} opts={{ item.opts }} state=mounted" + mount: name={{ item.name }} src={{ hostvars[nfs_server]['ansible_'+item.interface]['ipv4']['address'] }}:{{ item.src }} fstype={{ item.fstype }} opts={{ item.opts }} state=mounted with_items: exportList notify: "restart authentication" notify: "restart idmap" sudo: true - when: exportList is defined and result | failed + when: exportList is defined -- GitLab