Ansible installation error

Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
CentOS-8 - AppStream 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository ‘AppStream’:

I USED that os

anyone could help me fix this?

So you would like to download/update package without registering redhat subscription management?

on the tutorial there nothing regards that part and am a beginner am really confused

I noticed that even ping command is not working then I checked for connection and it’s not connected.

In case, If you will get a message that ansible is not available after running sudo yum install ansible, then try to install epel-release first (sudo yum install epel-release).