'Ansible not able to fetch nginx status on linux hosts

I am new & just started learning ansible. I installed ansible on ubuntu server & edited the /etc/ansible/hosts file with the IP's of my nodes. But ansible is not showing the status of the nginx service.

enter image description here

Seems that the ad-hoc command doesn't do anything.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source