#Example Role / Code for Ansible REST API with ONTAP
1 messages · Page 1 of 1 (latest)
i found this https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_restit_module.html will try and get back
I would recommend to still use our Ansible modules. All of them are now updated to use REST APIs in addition to ZAPI. Modules dedicated to ONTAP resources are providing a higher level of abstraction, and maintain idempotency.
I am trying to connect to my 1st NetApp node via Ansible control node and i get connection refused messages by the Filer. any help is appreciated -
what error are you seeing
I am receiving the following error msg
ansible all -m ping
xxxx.com | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: admin@xxxx.com: Permission denied (publickey,password,keyboard-interactive).",
"unreachable": true
}
I can simply ssh to the NetApp filer and it works fine
did you get same error when tried using any ONTAP ansible modules?
I have not tried ansible modules, can you please point me in the right direction on how to install ONTAP ansible modules?
install steps - https://galaxy.ansible.com/netapp/ontap
ansible-galaxy collection install netapp.ontap
list of modules details in - https://docs.ansible.com/ansible/latest/collections/netapp/ontap/index.html
Jump start your automation project with great content from the Ansible community