fix(container_registries): these are optional, dont attempt to configure if non specified

!6
This commit is contained in:
2023-11-04 17:57:39 +09:30
parent 0acc7a3cc2
commit 9936cd4499

View File

@ -187,6 +187,7 @@
- src: k3s-registries.yaml.j2 - src: k3s-registries.yaml.j2
dest: /etc/rancher/k3s/registries.yaml dest: /etc/rancher/k3s/registries.yaml
notify: kubernetes_restart notify: kubernetes_restart
when: "{{ (kubernetes_private_container_registry | default([])) | from_yaml | list | length > 0 }}"
# - name: Templates IPv6 # - name: Templates IPv6