reconfigure winrm via ansible?

Hi,

Has anyone managed to successfully reconfigure winrm remotely via a playbook? I need to up some timeouts and increase the MaxMemoryPerShellMB

I know that reconfiguring winrm is one of the things that is specifically disallowed over winrm remoting, but I imagine a scheduled task could do it. I’m aware you also have to restart winrm, but in my case I could happily wait through a win_reboot. Reconfiguring it manually via RDP is not really an option - too many servers to change!

Many thanks,

Jon

Well it turns out you can. Here’s a hacky playbook to tweak the timeout

`