Add systemd args to ensure that nfs-common is running before attempting to mount /users

pull/13/head
Zachary Seguin 6 years ago
parent 2a298ec733
commit 3f343382d8
  1. 2
      roles/nfs/tasks/main.yml

@ -34,7 +34,7 @@
- /scratch
- name: Add fstab entry for users
mount: src="aspartame:/users" name=/users fstype=nfs opts="bg,vers=3,sec=krb5p,nosuid,nodev" dump=0 passno=0 state=mounted
mount: src="aspartame:/users" name=/users fstype=nfs opts="noauto,bg,vers=3,sec=krb5p,nosuid,nodev,x-systemd.automount,x-systemd.requires=nfs-common.service" dump=0 passno=0 state=mounted
- name: Add fstab entry for music
mount: src="aspartame:/music" name=/music fstype=nfs opts="bg,vers=3,sec=sys,nolock,noatime,nosuid,nodev" dump=0 passno=0 state=mounted

Loading…
Cancel
Save