kairen / kubeadm-ansible

Build a Kubernetes cluster using kubeadm via Ansible.
Apache License 2.0
724 stars 379 forks source link

insecure registries issue #14

Closed Data-drone closed 5 years ago

Data-drone commented 6 years ago

I get an error: fatal: [10.1.4.19]: FAILED! => {"msg": "The conditional check 'insecure_registrys is defined and insecure_registrys > 0' failed. The error was: Unexpected templating type error occurred on ({% if insecure_registrys is defined and insecure_registrys > 0 %} True {% else %} False {% endif %}): '>' not supported between instances of 'NoneType' and 'int'\n\nThe error appears to have been in '/Users/admin/Documents/work/kubeadm-ansible/roles/docker/tasks/main.yml': line 18, 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: Add any insecure registrys to Docker config\n ^ here\n"

is this an ansible bug? I tried to add --extra-vars 'INSECURE_REGISTRY=[]' but that didn't help either

yuriwoof commented 6 years ago

I had same issue, and can avoid it removeing insecure_registrys > 0 from roles/docker/tasks/main.yml in my case. I think the way to get array length might be doubtful...

kairen commented 5 years ago

Fixed #53.