Https is the recommended method.
To run Ansible modules over https the following lines need to be added to each modules arguments
https: true
validate_certs: false
Alternate Workaround: Enable http access in ONTAP
cluster1::> set advanced
cluster1::*> system service web modify -http-enabled true