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
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...
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