# AWX 1.0.6.15/41 : win\_ping module FAILED ntlm code 403

**URL:** <https://forum.ansible.com/t/awx-1-0-6-15-41-win-ping-module-failed-ntlm-code-403/30960>\
**Category:** AWX Project\
**Tags:** windows, ubuntu, awx\
**Created:** [August 6, 2019, 9:21am UTC](https://forum.ansible.com/t/awx-1-0-6-15-41-win-ping-module-failed-ntlm-code-403/30960 "2019-08-06T09:21:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cedric\_A](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@Cedric\_A](https://forum.ansible.com/u/Cedric_A)\
**Post date:** [August 6, 2019, 9:21am UTC](https://forum.ansible.com/t/awx-1-0-6-15-41-win-ping-module-failed-ntlm-code-403/30960/1 "2019-08-06T09:21:35Z")

</div>

Hi,

My goal is to use AWX to do some actions on Windows servers (in a big company).

> From the command line I can ping my test server with the win\_ping module from my Ubuntu VM (18.04) with the Ansible package (v2.8.3).

In the “inventories” directory, I have this :

> > Local Ubuntu 18.04 + ansible 2.83  
> > /inventories  
> > —inventory.inv (file)  
> > —/group\_vars (directory)  
> > ------windows.yml (file)

> > File inventory.inv :  
> > [windows]  
> > Mywindows\_Host (\<= this is an example!)

> > File windows.yml :  
> > ansible\_user: user  
> > ansible\_password: password  
> > ansible\_port: 5985  
> > ansible\_winrm\_transport: ntlm  
> > ansible\_connection: winrm  
> > ansible\_winrm\_message\_encryption: always  
> > ansible\_winrm\_server\_cert\_validation: ignore

When I ping this windows host from my local Ubuntu with Ansible 2.8.3 using the command line there is no problem.

$\> ansible windows -m win\_ping -i inventories/

Mywindows\_Host | SUCCESS =\> {  
“changed”: false,  
“ping”: “pong”  
}

**But the same conf in AWX, I have an error…**

> Configuration in AWX :

- Credential : type MACHINE + user and password like in windows.yml file
- Inventory : create an inventory with the host name and in “Variables” section I put this :  
ansible\_port: 5985  
ansible\_winrm\_transport: ntlm  
ansible\_connection: winrm  
ansible\_winrm\_message\_encryption: always  
ansible\_winrm\_server\_cert\_validation: ignore  
(see attach file)

> But when I run win\_ping command from AWX I have this error :  
> {  
> “msg”: “ntlm: Bad HTTP response returned from server. Code 403”,  
> “unreachable”: true,  
> “changed”: false  
> }

( [https://github.com/ansible/awx/issues/4416](https://github.com/ansible/awx/issues/4416) )

Thanks for your help  
I know I have a very old version but we try to implement AWX in a large company and in higher versions there is always something that does not work or cannot be upgraded with existing data…
