Newer
Older
name: "Get the NFS Network"
setup: filter="ansible_tun0"
register: nfsServer
run_once: true
delegate_to: "{{ nfs_server }}"
mount: "name={{ item.name }} src={{ nfsServer['ansible_facts']['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