Ansible Facts and Windows OS in "All Hosts"

Hello,

It’s been some time that I am facing the issue of not having the Windows OS in the “All Hosts” page when hosts are created with ansible report or fact pushes.

For example I’ve in the Operating Systems list :
-> Microsoft Windows Server 2012 R2 Standard

  • Name : MicrosoftWindowsServer2012R2Standard
  • Major : 6
  • Minor : 3.96000
  • Description : Microsoft Windows Server 2012 R2 Standard
  • Family : windows

And in the facts :

  • ansible_distribution_major_version : 6
  • ansible_os_name : Microsoft Windows Server 2012 R2 Standard
  • ansible_distribution : Microsoft Windows Server 2012 R2 Standard

Is it because :

  • there is no space in the Operating System Name variable ?
  • there is a setting in foreman to make ansible variable mapping foreman global variable some where ?

Thanks for help !

I’ve tried, to change

/usr/lib/python2.7/site-packages/ansible/modules/windows/setup.ps1 and replace(’ ‘,’’) this different variables

ansible_distribution : MicrosoftWindowsServer2016Standard
ansible_os_name : MicrosoftWindowsServer2016Standard
operatingsystem : MicrosoftWindowsServer2016Standard

Without success …