From 9936cd449911a0e9612309690fbca82e8565c2b3 Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 4 Nov 2023 17:57:39 +0930 Subject: [PATCH] fix(container_registries): these are optional, dont attempt to configure if non specified !6 --- tasks/k3s/install.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/k3s/install.yaml b/tasks/k3s/install.yaml index 62d0bc6..4a6991a 100644 --- a/tasks/k3s/install.yaml +++ b/tasks/k3s/install.yaml @@ -187,6 +187,7 @@ - src: k3s-registries.yaml.j2 dest: /etc/rancher/k3s/registries.yaml notify: kubernetes_restart + when: "{{ (kubernetes_private_container_registry | default([])) | from_yaml | list | length > 0 }}" # - name: Templates IPv6