General Discussion

Highlighted

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

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

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

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

Forums