NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

General Discussion

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

gaurav_verma
2,777 Views

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
2,573 Views

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

Public