ansible setup how to show win_disk_information

18 views
Skip to first unread message

federico montaldo

unread,
Mar 14, 2019, 5:14:43 PM3/14/19
to Ansible Project
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

Jordan Borean

unread,
Mar 14, 2019, 7:29:42 PM3/14/19
to Ansible Project
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.

federico montaldo

unread,
Mar 14, 2019, 7:33:48 PM3/14/19
to ansible...@googlegroups.com
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?

El jue., 14 de marzo de 2019 8:29 p. m., Jordan Borean <jbor...@gmail.com> escribió:
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.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f732c836-7ce9-41e5-a47c-84d4ce4560b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages