Effective December 3, NetApp adopts Microsoft’s Business-to-Customer (B2C) identity management to simplify and provide secure access to NetApp resources.
For accounts that did not pre-register (prior to Dec 3), access to your NetApp data may take up to 1 hour as your legacy NSS ID is synchronized to the new B2C identity.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

General Discussion

How to check if volume/qtree exist with Ansible module.

gaurav_verma

Hello, 

 

I am using these modules na_ontap_volume & na_ontap_qtree. I could not find anyway to check if qtree or volume already exist in SVM. Do I have to use the handler to check? If yes, then back to same question, how handler will check if volume/qtree do exist. 

 

BTW, state: absent/present is also not working. Absent removes the volume and present allow task to be executed without any change. 

 

Thanks

 

 

1 REPLY 1

gaurav_verma

Never mind I got na_ontap_gather_facts for this in Ansible 2.7. It gives more information than I was expecting. 

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public