X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=scenarios%2Fk8-flannel-nofeature%2Frole%2Fk8-flannel-nofeature%2Ftasks%2Fmain.yml;h=fa63a9ca7f98983cc5f1ee5f17a5fe9c7f24d2cf;hb=HEAD;hp=5efd7c83c7bc13d8ae92fc8020b07c2b67b4da6e;hpb=f3b67171e055dee18ef22251d6a4f07c40333953;p=releng-xci-scenarios.git diff --git a/scenarios/k8-flannel-nofeature/role/k8-flannel-nofeature/tasks/main.yml b/scenarios/k8-flannel-nofeature/role/k8-flannel-nofeature/tasks/main.yml index 5efd7c8..fa63a9c 100644 --- a/scenarios/k8-flannel-nofeature/role/k8-flannel-nofeature/tasks/main.yml +++ b/scenarios/k8-flannel-nofeature/role/k8-flannel-nofeature/tasks/main.yml @@ -1,14 +1,19 @@ +--- ############################################################################## -# Copyright (c) 2018 taseer94@gmail.com & others. +# Copyright (c) 2019 Ericsson Software Technology and others. +# Copyright (c) 2018 HUAWEI TECHNOLOGIES CO.,LTD 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 ############################################################################## ---- -- name: copy the k8-cluster config file - copy: - src: k8-cluster.yml - dest: "{{ remote_xci_path }}/.cache/repos/kubespray/opnfv_inventory/group_vars/k8s-cluster.yml" +# set networking plugin to flannel +- name: Set network plugin to flannel + lineinfile: + path: "{{ remote_xci_path }}/.cache/repos/kubespray/inventory/opnfv/group_vars/k8s-cluster/k8s-cluster.yml" + regexp: "^kube_network_plugin:.*" + line: "kube_network_plugin: flannel" + +# vim: set ts=2 sw=2 expandtab: