diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2017-03-31 07:49:30 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-03-31 07:49:30 +0000 |
commit | 3f4c567e9653da19df355f0dfd2e32328baca41f (patch) | |
tree | 02b2aed7c5af22b203a80ff59e0f06ab8bd9e442 /prototypes/xci/playbooks | |
parent | 56cc657f8cd3ed250500d90ea33da1560d90033f (diff) | |
parent | 892cd68005252cb81902020e9fe4b1c7f0d3c0b9 (diff) |
Merge "xci: Add ansible files for sandbox noha flavor"
Diffstat (limited to 'prototypes/xci/playbooks')
-rw-r--r-- | prototypes/xci/playbooks/roles/configure-nfs/tasks/main.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/prototypes/xci/playbooks/roles/configure-nfs/tasks/main.yml b/prototypes/xci/playbooks/roles/configure-nfs/tasks/main.yml new file mode 100644 index 000000000..b188f4dbb --- /dev/null +++ b/prototypes/xci/playbooks/roles/configure-nfs/tasks/main.yml @@ -0,0 +1,36 @@ +--- +# SPDX-license-identifier: Apache-2.0 +############################################################################## +# Copyright (c) 2017 Ericsson AB and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +# TODO: this is for xenial and needs to be adjusted for different distros +- block: + - name: make NFS dir + file: + dest: /images + mode: 777 + state: directory + - name: configure NFS service + lineinfile: + dest: /etc/services + state: present + create: yes + line: "{{ item }}" + with_items: + - "nfs 2049/tcp" + - "nfs 2049/udp" + - name: configure NFS exports on ubuntu xenial + copy: + src: ../file/exports + dest: /etc/exports + when: ansible_distribution_release == "xenial" + # TODO: the service name might be different on other distros and needs to be adjusted + - name: restart ubuntu xenial NFS service + service: + name: nfs-kernel-server + state: restarted + when: ansible_distribution_release == "xenial" |