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
- base: repo.extreme-ix.org
- extras: repo.extreme-ix.org
- updates: repo.extreme-ix.org
http://mirrors.hostever.com/centos/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.hostever.com; Unknown error”
Trying other mirror.
http://centos.mirror.snu.edu.in/centos/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.mirror.snu.edu.in; Unknown error”
Trying other mirror.
http://mirrors.bkns.vn/centos/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.bkns.vn; Unknown error”
Trying other mirror.
http://mirrors.nhanhoa.com/centos/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.nhanhoa.com; Unknown error”
Trying other mirror.
http://mirror.bizflycloud.vn/centos/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.bizflycloud.vn; Unknown error”
Trying other mirror.
http://mirror.myfahim.com/centos/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.myfahim.com; Unknown error”
Trying other mirror.
http://mirror.xeonbd.com/centos/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.xeonbd.com; Unknown error”
Trying other mirror.
http://centos.excellmedia.net/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.excellmedia.net; Unknown error”
Trying other mirror.
http://centos.mirrors.estointernet.in/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.mirrors.estointernet.in; Unknown error”
Trying other mirror.
http://repo.extreme-ix.org/centos/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: repo.extreme-ix.org; Unknown error”
Trying other mirror.
http://mirrors.hostever.com/centos/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.hostever.com; Unknown error”
Trying other mirror.
http://centos.mirror.snu.edu.in/centos/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.mirror.snu.edu.in; Unknown error”
Trying other mirror.
http://mirrors.bkns.vn/centos/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.bkns.vn; Unknown error”
Trying other mirror.
http://mirrors.nhanhoa.com/centos/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.nhanhoa.com; Unknown error”
Trying other mirror.
http://mirror.bizflycloud.vn/centos/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.bizflycloud.vn; Unknown error”
Trying other mirror.
http://mirror.myfahim.com/centos/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.myfahim.com; Unknown error”
Trying other mirror.
http://mirror.xeonbd.com/centos/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.xeonbd.com; Unknown error”
Trying other mirror.
http://centos.excellmedia.net/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.excellmedia.net; Unknown error”
Trying other mirror.
http://centos.mirrors.estointernet.in/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.mirrors.estointernet.in; Unknown error”
Trying other mirror.
http://repo.extreme-ix.org/centos/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: repo.extreme-ix.org; Unknown error”
Trying other mirror.
http://mirrors.vhost.vn/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.vhost.vn; Unknown error”
Trying other mirror.
http://mirrors.hostever.com/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.hostever.com; Unknown error”
Trying other mirror.
http://centos.mirror.snu.edu.in/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.mirror.snu.edu.in; Unknown error”
Trying other mirror.
http://mirrors.bkns.vn/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.bkns.vn; Unknown error”
Trying other mirror.
http://mirror.bizflycloud.vn/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.bizflycloud.vn; Unknown error”
Trying other mirror.
http://mirror.myfahim.com/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.myfahim.com; Unknown error”
Trying other mirror.
http://mirror.xeonbd.com/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.xeonbd.com; Unknown error”
Trying other mirror.
http://centos.excellmedia.net/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.excellmedia.net; Unknown error”
Trying other mirror.
http://centos.mirrors.estointernet.in/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.mirrors.estointernet.in; Unknown error”
Trying other mirror.
http://repo.extreme-ix.org/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: repo.extreme-ix.org; Unknown error”
Trying other mirror.
No package ansible available.
Error: Nothing to do
[cloud@ansiblecontroller ~]$ pwd
/home/cloud
[cloud@ansiblecontroller ~]$ sudo root
sudo: root: command not found
[cloud@ansiblecontroller ~]$ cd root
-bash: cd: root: No such file or directory
[cloud@ansiblecontroller ~]$ cd …
[cloud@ansiblecontroller home]$ sudo yum install ansible
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile - base: repo.extreme-ix.org
- extras: repo.extreme-ix.org
- updates: repo.extreme-ix.org
http://mirrors.hostever.com/centos/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.hostever.com; Unknown error”
Trying other mirror.
http://centos.mirror.snu.edu.in/centos/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.mirror.snu.edu.in; Unknown error”
Trying other mirror.
http://mirrors.bkns.vn/centos/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.bkns.vn; Unknown error”
Trying other mirror.
http://mirrors.nhanhoa.com/centos/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.nhanhoa.com; Unknown error”
Trying other mirror.
http://mirror.bizflycloud.vn/centos/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.bizflycloud.vn; Unknown error”
Trying other mirror.
http://mirror.myfahim.com/centos/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.myfahim.com; Unknown error”
Trying other mirror.
http://mirror.xeonbd.com/centos/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.xeonbd.com; Unknown error”
Trying other mirror.
http://centos.excellmedia.net/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.excellmedia.net; Unknown error”
Trying other mirror.
http://centos.mirrors.estointernet.in/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.mirrors.estointernet.in; Unknown error”
Trying other mirror.
http://repo.extreme-ix.org/centos/7.9.2009/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: repo.extreme-ix.org; Unknown error”
Trying other mirror.
http://mirrors.hostever.com/centos/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.hostever.com; Unknown error”
Trying other mirror.
http://centos.mirror.snu.edu.in/centos/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.mirror.snu.edu.in; Unknown error”
Trying other mirror.
http://mirrors.bkns.vn/centos/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.bkns.vn; Unknown error”
Trying other mirror.
http://mirrors.nhanhoa.com/centos/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.nhanhoa.com; Unknown error”
Trying other mirror.
http://mirror.bizflycloud.vn/centos/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.bizflycloud.vn; Unknown error”
Trying other mirror.
http://mirror.myfahim.com/centos/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.myfahim.com; Unknown error”
Trying other mirror.
http://mirror.xeonbd.com/centos/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.xeonbd.com; Unknown error”
Trying other mirror.
http://centos.excellmedia.net/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.excellmedia.net; Unknown error”
Trying other mirror.
http://centos.mirrors.estointernet.in/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.mirrors.estointernet.in; Unknown error”
Trying other mirror.
http://repo.extreme-ix.org/centos/7.9.2009/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: repo.extreme-ix.org; Unknown error”
Trying other mirror.
http://mirrors.vhost.vn/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.vhost.vn; Unknown error”
Trying other mirror.
http://mirrors.hostever.com/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.hostever.com; Unknown error”
Trying other mirror.
http://centos.mirror.snu.edu.in/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.mirror.snu.edu.in; Unknown error”
Trying other mirror.
http://mirrors.bkns.vn/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.bkns.vn; Unknown error”
Trying other mirror.
http://mirror.bizflycloud.vn/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.bizflycloud.vn; Unknown error”
Trying other mirror.
http://mirror.myfahim.com/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.myfahim.com; Unknown error”
Trying other mirror.
http://mirror.xeonbd.com/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirror.xeonbd.com; Unknown error”
Trying other mirror.
http://centos.excellmedia.net/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.excellmedia.net; Unknown error”
Trying other mirror.
http://centos.mirrors.estointernet.in/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: centos.mirrors.estointernet.in; Unknown error”
Trying other mirror.
http://repo.extreme-ix.org/centos/7.9.2009/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: repo.extreme-ix.org; Unknown error”