fatal: [controller2]: FAILED! => {"msg": "'ansible.vars.hostvars.HostVarsVars object' has no attribute 'kubeadm_init'"}
时间: 2024-06-04 16:13:57 浏览: 87
This error message typically indicates that the playbook or role being executed is trying to access a variable or attribute that does not exist for the specified host in the inventory.
In this case, it seems that the attribute `kubeadm_init` is not defined for `controller2` in the inventory. You may need to check your inventory file or dynamic inventory script to ensure that the necessary variables are defined correctly for each host.
If you are using a dynamic inventory script, you may also need to modify it to include the necessary variables for each host. Additionally, you should check that any variables or attributes being accessed are spelled correctly and match the names defined in your playbook or role.
阅读全文