#!/usr/bin/env ansible-playbook # vim:ft=ansible: --- - hosts: vm-bastion-1.home.mgmt.desu.ltd gather_facts: no tasks: - name: assure nfs mount directory file: path=/nfs/projects state=directory mode=0755 tags: [ storage ] - name: assure nfs mount mount: path=/nfs/projects src=192.168.190.1:/nfs/projects fstype=nfs4 opts="rsize=10248576,wsize=1048576,soft,timeo=600,retrans=2,_netdev" state=mounted tags: [ storage ]