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.