sguyennet / terraform-vsphere-kubespray

Deploy a Kubernetes HA cluster on VMware vSphere
https://blog.inkubate.io/install-and-manage-automatically-a-kubernetes-cluster-on-vmware-vsphere-with-terraform-and-kubespray/
Apache License 2.0
174 stars 89 forks source link

terraform destroy #13

Closed christopherkrull closed 5 years ago

christopherkrull commented 5 years ago

so when running the terraform destory command it gets to the ansible playbook for remove-node in the ansible/kubespray directory and errors out. command executed cd ansible/kubespray && ansible-playbook -i ../config/hosts_remove_2.ini -b -u k8s -e 'ansible_ssh_pass=**** ansible_become_pass=*** delete_nodes_confirmation=yes' -v remove-node.yml

The reason is it is calling the inventory file only one directory higher when it should be ../../config/hosts_remove*.ini

sguyennet commented 5 years ago

Thanks a lot for reporting this issue. I just fixed it.