# Copyright 2018 The Kubernetes Authors. # 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. --- - hosts: all become: yes vars: node_custom_roles_pre: "" node_custom_roles_post: "" custom_role_names: "" tasks: - include_role: name: "{{ role }}" loop: "{{ node_custom_roles_pre.split() }}" loop_control: loop_var: role when: node_custom_roles_pre != "" - include_role: name: node - include_role: name: providers - include_role: name: containerd - include_role: name: kubernetes - include_role: name: load_additional_components when: load_additional_components | bool - include_role: name: "{{ role }}" loop: "{{ custom_role_names.split() + node_custom_roles_post.split() }}" loop_control: loop_var: role when: custom_role_names != "" or node_custom_roles_post != "" - include_role: name: sysprep environment: http_proxy: "{{ http_proxy | default('') }}" https_proxy: "{{ https_proxy | default('') }}" no_proxy: "{{ no_proxy | default('') }}" HTTP_PROXY: "{{ http_proxy | default('') }}" HTTPS_PROXY: "{{ https_proxy | default('') }}" NO_PROXY: "{{ no_proxy | default('') }}" PYTHONPATH: "{{ python_path }}"