# \[WARNING\]: The "winrm" connection plugin has an improperly configured remote target value, forcing "inventory\_hostname" templated value instead of the string

**URL:** <https://forum.ansible.com/t/warning-the-winrm-connection-plugin-has-an-improperly-configured-remote-target-value-forcing-inventory-hostname-templated-value-instead-of-the-string/36710>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [June 9, 2022, 3:22pm UTC](https://forum.ansible.com/t/warning-the-winrm-connection-plugin-has-an-improperly-configured-remote-target-value-forcing-inventory-hostname-templated-value-instead-of-the-string/36710 "2022-06-09T15:22:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bob](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bob/32/9260_2.png) [@bob](https://forum.ansible.com/u/bob)\
**Post date:** [June 9, 2022, 3:22pm UTC](https://forum.ansible.com/t/warning-the-winrm-connection-plugin-has-an-improperly-configured-remote-target-value-forcing-inventory-hostname-templated-value-instead-of-the-string/36710/1 "2022-06-09T15:22:07Z")

</div>

Upgraded from ansible-5.6 to ansible-5.9, along with all the package dependency that ansible-5.9 requires.

Now all my windows playbooks throw this warning.

[WARNING]: The “winrm” connection plugin has an improperly configured remote target value, forcing “inventory\_hostname” templated value instead of the string

My GoogleFu failed me and I could not find a fix to this problem. I thought I’d find a migration guide for moving 5.6 to 5.9 but I did not find a guide.

After the WARNING the ansible.windows.setup output does not look correct (at least compared to 5.6)

\<inventory\_hostname\> ESTABLISH WINRM CONNECTION FOR USER: [Administrator@XXX.DOMAIN.COM](mailto:Administrator@XXX.DOMAIN.COM) on PORT 5986 TO inventory\_hostname

No sure how to fix this problem.

My gut tells me something needs to change in my winrm or kerberos variables in my inventory file but I am unable to find docs on what changes are needed for ansible-5.9

Any help would be appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![bob](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bob/32/9260_2.png) [@bob](https://forum.ansible.com/u/bob)\
**Post date:** [June 9, 2022, 3:38pm UTC](https://forum.ansible.com/t/warning-the-winrm-connection-plugin-has-an-improperly-configured-remote-target-value-forcing-inventory-hostname-templated-value-instead-of-the-string/36710/2 "2022-06-09T15:38:23Z")

</div>

Throwing stuff at the wall, I’ve tried the ansible.cfg from [https://github.com/ansible/ansible/blob/stable-2.9/examples/ansible.cfg](https://github.com/ansible/ansible/blob/stable-2.9/examples/ansible.cfg) as well as `ansible-config init --disabled -t all > ansible.cfg`

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [June 9, 2022, 3:42pm UTC](https://forum.ansible.com/t/warning-the-winrm-connection-plugin-has-an-improperly-configured-remote-target-value-forcing-inventory-hostname-templated-value-instead-of-the-string/36710/3 "2022-06-09T15:42:43Z")

</div>

This was a bug in ansible-core 2.13.0, and will be resolved in 2.13.1 which is scheduled for release on June 20. See [https://github.com/ansible/ansible/pull/77894](https://github.com/ansible/ansible/pull/77894)

---

<div class="post-metadata">

**Author:** ![bob](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bob/32/9260_2.png) [@bob](https://forum.ansible.com/u/bob)\
**Post date:** [June 9, 2022, 4:01pm UTC](https://forum.ansible.com/t/warning-the-winrm-connection-plugin-has-an-improperly-configured-remote-target-value-forcing-inventory-hostname-templated-value-instead-of-the-string/36710/4 "2022-06-09T16:01:37Z")

</div>

Thanks for the quick response.
