From 2874158060185dffe919e87b2671825f44dac301 Mon Sep 17 00:00:00 2001 From: Ho Kim Date: Sun, 5 Feb 2023 10:12:35 +0000 Subject: [PATCH] Avoid to re-download common binaries --- roles/download/tasks/main.yml | 1 + .../kubeadm}/templates/kubeadm-images.yaml.j2 | 0 2 files changed, 1 insertion(+) rename roles/{download => kubernetes/kubeadm}/templates/kubeadm-images.yaml.j2 (100%) diff --git a/roles/download/tasks/main.yml b/roles/download/tasks/main.yml index a674c27df8c..ffeadc23231 100644 --- a/roles/download/tasks/main.yml +++ b/roles/download/tasks/main.yml @@ -25,3 +25,4 @@ - item.value.enabled - (not (item.value.container | default(false))) or (item.value.container and download_container) - (download_run_once and inventory_hostname == download_delegate) or (group_names | intersect(download.groups) | length) + run_once: true diff --git a/roles/download/templates/kubeadm-images.yaml.j2 b/roles/kubernetes/kubeadm/templates/kubeadm-images.yaml.j2 similarity index 100% rename from roles/download/templates/kubeadm-images.yaml.j2 rename to roles/kubernetes/kubeadm/templates/kubeadm-images.yaml.j2