Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined variable 'kubernetes_join_command' #1

Open
tperelle opened this issue Jun 25, 2019 · 0 comments
Open

Undefined variable 'kubernetes_join_command' #1

tperelle opened this issue Jun 25, 2019 · 0 comments

Comments

@tperelle
Copy link

tperelle commented Jun 25, 2019

I had an issue when executing vagrant up, in the ansible playbook execution :

TASK [kubernetes/cluster : KUBERNETES | Set kubeadm join command globally] *****
fatal: [kubernetes02]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'kubernetes_join_command'\n\nThe error appears to have been in '/Users/thomas/Dev/Tests/ansible_kubernetes/roles/kubernetes/cluster/tasks/main.yml': line 42, 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: KUBERNETES | Set kubeadm join command globally\n ^ here\n"}
fatal: [kubernetes03]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'kubernetes_join_command'\n\nThe error appears to have been in '/Users/thomas/Dev/Tests/ansible_kubernetes/roles/kubernetes/cluster/tasks/main.yml': line 42, 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: KUBERNETES | Set kubeadm join command globally\n ^ here\n"}

PLAY RECAP *********************************************************************
kubernetes01 : ok=24 changed=14 unreachable=0 failed=1
kubernetes02 : ok=24 changed=14 unreachable=0 failed=1
kubernetes03 : ok=24 changed=14 unreachable=0 failed=1

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

Material & Versions :

  • Macbook pro / macOS Mojave 10.14.5
  • Ansible 2.7.1
  • Python 3.7.2
  • Vagrant 2.2.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant