#Example Role / Code for Ansible REST API with ONTAP

1 messages · Page 1 of 1 (latest)

brittle grotto
#

Hi All,
So far i am using Ansible Modules for Ontap automation. Now I want to explore further and planning to use REST APIs. Fan of not inventing the wheel, so wanted to know if there are any sample Roles or code available which can be used for this.
Thanks in anticipation.
Warm Regards
Abhi

brittle grotto
dense flare
#

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.

hallow helm
#

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 -

silk karma
#

what error are you seeing

hallow helm
#

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

tired coral
hallow helm
#

I have not tried ansible modules, can you please point me in the right direction on how to install ONTAP ansible modules?

tired coral