techno-tim / k3s-ansible

The easiest way to bootstrap a self-hosted High Availability Kubernetes cluster. A fully automated HA k3s etcd install with kube-vip, MetalLB, and more. Build. Destroy. Repeat.
https://technotim.live/posts/k3s-etcd-ansible/
Apache License 2.0
2.41k stars 1.05k forks source link

The conditional check 'custom_registries' failed #489

Closed Barlog951 closed 7 months ago

Barlog951 commented 7 months ago

Hi all

I was using older version of script from like half year ago ( everything works fine ), now I try new version ( current head )

and this happens

"msg": "The conditional check 'custom_registries' failed. The error was: error while evaluating conditional (custom_registries): 'custom_registries' is undefined. 'custom_registries' is undefined\n\nThe error appears to be in 'Kubernetes/k3s-ansible/roles/k3s_custom_registries/tasks/main.yml': line 3, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Create directory /etc/rancher/k3s\n ^ here\n

servers Ubuntu 22.04 ansible [core 2.16.5]

I start script from Mac machine

Thanks for help :)

timothystewart6 commented 7 months ago

can you please post your variables?