--- - name: ensure that an fstab entry exists to NFS mount /home lineinfile: path: /etc/fstab regexp: '^.*:/home /home nfs.*' # Do not use locking, since this starts/needs rpc.statd, which is # stopped/started by CTDB line: '{{ virthost }}:/home /home nfs nfsvers=3,intr,nolock 0 0' - name: ensure that /home is mounted shell: > findmnt -n /home || mount /home