0

I am trying to deploy a Kubernetes cluster using kubespray, however, when I run the command:

ansible-playbook -i inventory/mycluster/hosts.ini --become --become-user=root cluster.yml

It displays the following error on all nodes:

fatal: [node1]: FAILED! => {"changed": false, "msg": "usermod: user 'kubeuser' does not exist in /etc/passwd\n", "name": "kubeuser", "rc": 6}

The thing is that the kubeuser which is executing the command is an ldap user and therefore is not found in the local passwd file. I've tried everything I can think of, however, I am not familiar enough with ansible to fix this. We can assume the .ini files are correct.

  • Hi Hegemon welcome to S.F. Kubespray is [looking for maintainers](https://github.com/kubernetes-sigs/kubespray/issues/5432), so it is unlikely to be a platform upon which you want to build your future cluster. That said, if that's the only task that's failing, and your environment doesn't have users in `/etc/passwd`, then just delete or edit that task. Good luck – mdaniel Jun 08 '22 at 15:43

0 Answers0