# ansible setup how to show win\_disk\_information

**URL:** <https://forum.ansible.com/t/ansible-setup-how-to-show-win-disk-information/29889>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [March 14, 2019, 9:14pm UTC](https://forum.ansible.com/t/ansible-setup-how-to-show-win-disk-information/29889 "2019-03-14T21:14:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fmontaldo3](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fmontaldo3](https://forum.ansible.com/u/fmontaldo3)\
**Post date:** [March 14, 2019, 9:14pm UTC](https://forum.ansible.com/t/ansible-setup-how-to-show-win-disk-information/29889/1 "2019-03-14T21:14:43Z")

</div>

Hi folks

I need to create an inventory file for windows servers. Therefore I run the following command:

ansible win00-stg -m setup --tree out/

when I check into one of the generate files there is no disk information. However I can run it separetly with the follwing command:

ansible win00-stg -m win\_disk\_facts --tree out/

There is a way to include the disk information in the same command.

Thanks in advance

Federico

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [March 14, 2019, 11:29pm UTC](https://forum.ansible.com/t/ansible-setup-how-to-show-win-disk-information/29889/2 "2019-03-14T23:29:41Z")

</div>

No, the win\_disk\_facts is a separate module from the standard setup/gather\_facts module. You can use a playbook to run both or call ansible twice.

---

<div class="post-metadata">

**Author:** ![fmontaldo3](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fmontaldo3](https://forum.ansible.com/u/fmontaldo3)\
**Post date:** [March 14, 2019, 11:33pm UTC](https://forum.ansible.com/t/ansible-setup-how-to-show-win-disk-information/29889/3 "2019-03-14T23:33:20Z")

</div>

Hi Jordan

Thanks for your repply. I got an ansible playbook example but I dont know the way to get the exact data. Do you have an example?
