2 # SPDX-license-identifier: Apache-2.0
3 ##############################################################################
4 # Copyright (c) 2017 Ericsson AB and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10 # TODO: this is for xenial and needs to be adjusted for different distros
12 - name: make NFS directories
20 - name: configure NFS service
29 - name: configure NFS exports
36 - "/images *(rw,sync,no_subtree_check,no_root_squash)"
37 - "/volumes *(rw,sync,no_subtree_check,no_root_squash)"
38 # TODO: the service name might be different on other distros and needs to be adjusted
39 - name: restart ubuntu xenial NFS service
41 name: nfs-kernel-server
43 when: ansible_distribution_release == "xenial"