X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fcaas-kubernetes.git;a=blobdiff_plain;f=ansible%2Froles%2Fset_nodes_label%2Ftasks%2Fmain.yml;fp=ansible%2Froles%2Fset_nodes_label%2Ftasks%2Fmain.yml;h=259208469df6b83e40f0dde76f6a5a9b8128ec4a;hp=0000000000000000000000000000000000000000;hb=600b8a137035034e7716a1fec564ca8338fbf755;hpb=55ac8440e014cf56620965ff7c0e7ae3da29e901 diff --git a/ansible/roles/set_nodes_label/tasks/main.yml b/ansible/roles/set_nodes_label/tasks/main.yml new file mode 100644 index 0000000..2592084 --- /dev/null +++ b/ansible/roles/set_nodes_label/tasks/main.yml @@ -0,0 +1,18 @@ +--- +# Copyright 2019 Nokia +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +- name: set node role for cluster member + shell: "kubectl label node {{ networking.infra_internal.ip }} kubernetes.io/role={{ noderole }}" +