# Ansible\_os\_name: null in ansible.builtin.setup

**URL:** <https://forum.ansible.com/t/ansible-os-name-null-in-ansible-builtin-setup/45857>\
**Category:** Get Help\
**Tags:** windows, aap, ee\
**Created:** [May 28, 2026, 12:47pm UTC](https://forum.ansible.com/t/ansible-os-name-null-in-ansible-builtin-setup/45857 "2026-05-28T12:47:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![billy\_zheng](https://avatars.discourse-cdn.com/v4/letter/b/b38774/32.png) [@billy\_zheng](https://forum.ansible.com/u/billy_zheng)\
**Post date:** [May 28, 2026, 12:47pm UTC](https://forum.ansible.com/t/ansible-os-name-null-in-ansible-builtin-setup/45857/1 "2026-05-28T12:47:08Z")

</div>

my playbook running on ansible automation platform and using setup to gather facts from windows server . the job template configuration don’t make any modification on playbook ,execution environment .

in 5/6/2026 , gather facts can return ansible\_os\_name properly .  
“ansible\_os\_name”: “Microsoft Windows Server 2019 Datacenter”,

but gather facts return null on 5/28/2026 .  
“ansible\_os\_name”: null,

any ideas for this strange issue ?  
Thanks

---

<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:** [May 28, 2026, 7:19pm UTC](https://forum.ansible.com/t/ansible-os-name-null-in-ansible-builtin-setup/45857/2 "2026-05-28T19:19:09Z")

</div>

There was a bug in the 3.6.0 release of `ansible.windows` that caused some facts to not be set [ansible\_distribution will be null with version 3.6.0 · Issue #900 · ansible-collections/ansible.windows · GitHub](https://github.com/ansible-collections/ansible.windows/issues/900). I’ve pushed out 3.6.1 of `ansible.windows` that fixes this issue so please make sure you are on that version of the collection.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [June 27, 2026, 7:19pm UTC](https://forum.ansible.com/t/ansible-os-name-null-in-ansible-builtin-setup/45857/3 "2026-06-27T19:19:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
