# Processing data from Node

**URL:** <https://forum.ansible.com/t/processing-data-from-node/33830>\
**Category:** Ansible Project\
**Created:** [September 16, 2020, 6:00pm UTC](https://forum.ansible.com/t/processing-data-from-node/33830 "2020-09-16T18:00:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Fadden](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@Scott\_Fadden](https://forum.ansible.com/u/Scott_Fadden)\
**Post date:** [September 16, 2020, 6:00pm UTC](https://forum.ansible.com/t/processing-data-from-node/33830/1 "2020-09-16T18:00:48Z")

</div>

What is the best approach using ansible to

1. Query data from a VM
2. Operate on the results  
I need to look up the sd device serial numbers on the VM then process that locally (on node running ansible) then run another playbook using the results to create LVM entities, file systems etc.I can find way to query the data I need, I can write python/shell to process the returned results but I was looking to do more within ansible. Any direction would be appreciated

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [September 16, 2020, 6:49pm UTC](https://forum.ansible.com/t/processing-data-from-node/33830/2 "2020-09-16T18:49:35Z")

</div>

Do you have any specific questions?  
Otherwise the best way forward is to just start here:  
[https://docs.ansible.com/ansible/latest/user\_guide/intro\_getting\_started.html](https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html)  
Start simple then gradually work your way to more complex playbooks.
