What does this verify mean , i installed and reload the configuration and tested it as well

Agree. That’s a misleading validation message.

Could you please share the name of the course/lab for this?

but when i restarted the session and tried with sudo commond to install ansible and make it as global environment variable yet it gave me error

i figured out the problem , it was installing ansible at local location bcz of not using sudo commond

it is the 100 days devops chanllenge,
day 8: installing ansible on jump server to make it global for all the user on this system , can use ansible command