问题解决:Syntax problem: - name: unseal vault

在通过kubespray 安装k8s集群时,运行命令:

time kubespray deploy --verbose -u root -k .ssh/id_rsa -n flannel

出现错误:

The error appears to have been in '/xx/kubernetes-project/kubespray/roles/vault/handlers/main.yml': line 44, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: unseal vault
  ^ here

环境:cento7

问题解决:

1.卸载 ansible,然后重装 :

pip uninstall ansible 
pip install ansible

 2.卸载hashivault ,然后重装:

pip uninstall ansible-modules-hashivault
pip install ansible-modules-hashivault

在使用时没用 sudo 。

3.重新运行kubespray 命令来装即可。

猜你喜欢

转载自blog.csdn.net/ANXIN997483092/article/details/81586716