[Unit] Description=NFS share from {{ __nfs_mount['nfs_host'] }}:{{ __nfs_mount['nfs_dir'] }} to {{ __nfs_mount['local_dir_path'] }} DefaultDependencies=no Conflicts=umount.target After=network-online.target remote-fs.target Before=umount.target {% if __nfs_mount['before_service'] is defined %} {% for __before_service in __nfs_mount['before_service'] %} Before={{ __before_service }} {% endfor %} {% endif %} [Mount] What={{ __nfs_mount['nfs_host'] }}:{{ __nfs_mount['nfs_dir'] }} Where={{ __nfs_mount['local_dir_path'] }} Type={{ __nfs_mount['nfs_fstype'] | default('nfs4') }} Options={{ __nfs_mount['nfs_opts'] }} [Install] WantedBy=multi-user.target