General Discussion

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

gaurav_verma
1,832 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
1,628 Views

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

Public