You need to use localhost and https to communicate.
Here is an example of ad-hoc ansible command.
"ansible localhost -m na_ontap_info -a "hostname=192.168.0.101 username=admin password=Netapp01 https=true validate_certs=false"
Please replace the hostname with your cluster management IP, and same for username and password to see if it works.