Getting the error while downloading Ansible in Centos

I am following the same command to install the ansible in Centos but unable to do so due to the below errors

[cloud@ansiblecontroller ~]$ sudo yum install ansible
[sudo] password for cloud:
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile

@aapande2
Can you try to ping www.google.com? if the ping command doesn’t work, it seems that it’s an internet problem, check the connectivity to the internet on your VM and try again.