From the course: Ansible: From Basics to Guru by Pearson

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Running the playbook to create a Kubernetes cluster

Running the playbook to create a Kubernetes cluster - Ansible Tutorial

From the course: Ansible: From Basics to Guru by Pearson

Running the playbook to create a Kubernetes cluster

All right, so now that we know what's going on in this big playbook, let's do Ansible playbook of kube cluster setup.yaml minus e kube host is kubuntu. I've made sure that kubuntu is set up for hostname resolving and oops, there's one thing that I do need to do, and that is I need to put it in inventory as well. I don't think it's already in inventory, so there we go, kubuntu. And now let me remove the pound sign from the beginning and let's run the playbook and see how it's working out. So I did not set up Kubuntu for passwordless pseudo-privilege escalation. And there we go. We can see it's printing some debug messages. We can see installing container D roll and Stellingen could not match the supplied host pattern, ignoring Kubuntu. oh that doesn't seem to be doing all right. So we have a problem with the host name pattern, so ping qbuntu is doing what? Ping qbuntu is working, but why is it telling us that it could not supply the host name pattern? Well, we overlooked this guy…

Contents