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

Extra ansible argument 'ansible_become_method=su' not working on debian #31

Closed bbichero closed 4 years ago

bbichero commented 4 years ago

I saw that you have added an extra argument for ansible-playbook, only when Operating System is Debian, why ? https://github.com/sguyennet/terraform-vsphere-kubespray/blob/b5aaf69c3fe6420c19a9e2b960fc04d2024e9ec7/vsphere-kubespray.tf#L223 This argument produce error when ansible role haproxy run:

Incorrect su password

If I remove it, playbook run perfectly

sguyennet commented 4 years ago

Hi, I added this parameter because out of the box on a Debian 9 there is no sudo, therefor we need to use su to gain root privilege. If your image of Debian is using sudo, then you should remove this parameter.

bbichero commented 4 years ago

Thanks for the quick answer, okay I understand.