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

**URL:** <https://forum.ansible.com/t/retrieving-a-value-from-netapp-cluster-and-assign-it-to-a-variable-in-playbook/33461>\
**Category:** Ansible Project\
**Created:** [July 22, 2020, 10:42am UTC](https://forum.ansible.com/t/retrieving-a-value-from-netapp-cluster-and-assign-it-to-a-variable-in-playbook/33461 "2020-07-22T10:42:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vkky2k](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@vkky2k](https://forum.ansible.com/u/vkky2k)\
**Post date:** [July 22, 2020, 10:42am UTC](https://forum.ansible.com/t/retrieving-a-value-from-netapp-cluster-and-assign-it-to-a-variable-in-playbook/33461/1 "2020-07-22T10:42:48Z")

</div>

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.
