# Copyright 2020 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. --- - import_tasks: debian.yml when: ansible_os_family == "Debian" - import_tasks: flatcar.yml # This task overrides ansible_os_family to "Flatcar" as a workaround for # regression between Flatcar and Ansible, so rest of the code can use just # "Flatcar" for comparison, which is the correct value. when: ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"] - import_tasks: redhat.yml when: ansible_os_family == "RedHat" - import_tasks: photon.yml when: ansible_os_family == "VMware Photon OS" # Copy in pip config file when defined - name: Install pip config file copy: src: "{{ pip_conf_file }}" dest: /etc/pip.conf mode: 0644 when: pip_conf_file != ""