Retrieving a value from NetApp cluster, and assign it to a variable in Playbook

New to Ansible, and need your help.

I wanted to use a playbook to retrieve a value about a volume upon the entered volume name. Then I assign the value to a variable in Ansible. Based on the value, conditionally determine what next step is in my playbook.

Can somebody please illustrate how the code should look like? I don’t see a way that Ansible can interactively “talk” to the storage back and forth.