Difficult without the actual playbook - it does state you have a syntax error. But sounds like you might be trying to connect directly to ONTAP which is not how the Netapp modules work. The modules connect through Python from the Ansible machine so there's no ssh session. So the top of your playbook would look something like this:
name: ONTAP hosts: localhost gather_facts: no connection: local
...and then the task calls would have the hostname, username, and password
I suggest you look at the articles on netapp.io for details on installing the latest modules, example playbooks, etc. You definitely want the new modules!
the hosts: netapp line needs to be changed to hosts: localhost. The host connection is called out in the task configuration, however you are asking ansible to do a test ahead of time that ONTAP is not able to do being it doens't have the sh shell that ansible will look for.