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

Can you try to ping 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.