-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for windows servers some columns are blank #193
Comments
Hi Federico! I'm not sure if ansible collects the required facts for those columns on windows. I currently don't have access to any Windows hosts with Ansible. Can you send me an example output of the facts for windows ( |
thansks for your replly I just sent you an email |
Hi Ferry, Please let me know if you have an update on thins. I got a playbook example that extracts some data. Thanks in advance Federico |
Maybe use https://docs.ansible.com/ansible/latest/modules/win_disk_facts_module.html for show disk info? |
Hi, I have almost exclusive windows environment and also would like to have filled all columns in output. I created small powershell script which is readable by ansible it is visible in this snippet: "ansible_disk_info": {
|
Hi systemfifteen, The windows-host.json.txt doesn't look like valid JSON. A few values are not quoted. For example
If you can manage to fix those problems, I believe you should be able to use these files with ansible-cmdb fairly straight forward. Normally you'd run
Where
It should work. You may not have all the facts, but you can tweak your input script, the colums or a complete template to customize your output. |
Hi, sorry, those unquoted values was my effort for anonymization of file :-) in fact I was able to create html (or any other) report from that file. My only problem is that, for linux machines I can see disk usage with no problem, but for windows servers it is not showing anything. Through collection I used "-a fact_path='C:\ansible_facts'" with that one line powershell so it produced earlier mentioned snippet along with all other gathered data. it only seems that ansible-cmdb can't interpret said snippet as it does not know how. so resolution to window machines is simulating ansible disk output similar to linux machines anyway thanks for reply 👍 I have hint how to proceed |
ran into the same thing today, but i don't fully understand. @systemfifteen could you post here if you manage to get the disk sizes? I remember from long ago one could include facter... no idea if that is still possible. |
Hi,
This tool is amazing. I got some windows servers in my ansible inventory. When I check the html report the follwing columns are in black:
Disk Usage
PhysDisk size
Also the Virt column show me this:
?/?
There is a way to fix it.
Thanks in advance
Federico
The text was updated successfully, but these errors were encountered: