summaryrefslogtreecommitdiffstats
path: root/ansible/node/roles/common/tasks/generic/mount_home.yml
blob: 8a498160a494d737814f0488ec4435ed83d21c3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
---
- 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