From 881452d0f9630f7350b6b7beb255cf046858d169 Mon Sep 17 00:00:00 2001 From: k8s-infra-cherrypick-robot <90416843+k8s-infra-cherrypick-robot@users.noreply.github.com> Date: Fri, 31 May 2024 02:41:33 -0700 Subject: [PATCH] fix(bootstrap-os): do not install pkgs requirements on flatcar (#11252) Fix regression added in 663fcd104c38ddc2bf8c023f6f6b3705048d531e for flatcar nodes. See: https://github.com/kubernetes-sigs/kubespray/commit/663fcd104c38ddc2bf8c023f6f6b3705048d531e Co-authored-by: Anthony Delannoy --- roles/kubernetes/preinstall/tasks/0070-system-packages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/kubernetes/preinstall/tasks/0070-system-packages.yml b/roles/kubernetes/preinstall/tasks/0070-system-packages.yml index 7085ffb0c..47affa10c 100644 --- a/roles/kubernetes/preinstall/tasks/0070-system-packages.yml +++ b/roles/kubernetes/preinstall/tasks/0070-system-packages.yml @@ -82,5 +82,6 @@ until: pkgs_task_result is succeeded retries: "{{ pkg_install_retries }}" delay: "{{ retry_stagger | random + 3 }}" + when: not (ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"] or is_fedora_coreos) tags: - bootstrap-os