Checking HTTP status codes with win_uri and Ansible 2.4.0.0

HI all,

I am running Ansible 2.4.0.0 (on Ubuntu 16.04) and I am talking to Windows hosts via WinRM.

I am using the win_uri module which can check the status code of the HTTP response, but I can’t get it to work correctly.

For example, if I have a playbook like this:

Does the win_uri module definately support that style of list notation? It’s written in powershell so perhaps not?

The docs seem to suggest so…

Hi,
With