Before running the kubespray playbook, let's check whether hosts.ini and Ansible itself work properly or not:
- To do that, use the Ansible ad hoc command, using the ping module, as shown in the following screenshot:
- This result indicates SUCCESS. But if you see the following error, probably the IP address is wrong or the target machine is down, so please the check target machine first:
- Next, check your authority whether you can escalate a privilege on the target machine or not. ...