First on the control server we need to install ansible from epel repo using yum. I use centos 7 as control server.
install the elel repo RPM.
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Install the ansible with yum command.
yum install ansible -y
Create the ansible inventory file for kubernets 3 nodes cluster