ansible setup how to show win_disk_information

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

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.

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?