# Ansible winrm timeout

**URL:** <https://forum.ansible.com/t/ansible-winrm-timeout/21042>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [April 1, 2016, 2:55pm UTC](https://forum.ansible.com/t/ansible-winrm-timeout/21042 "2016-04-01T14:55:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_O\_Brien](https://avatars.discourse-cdn.com/v4/letter/d/c0e974/32.png) [@David\_O\_Brien](https://forum.ansible.com/u/David_O_Brien)\
**Post date:** [April 1, 2016, 2:55pm UTC](https://forum.ansible.com/t/ansible-winrm-timeout/21042/1 "2016-04-01T14:55:17Z")

</div>

And another one…

I have a PowerShell script that I copy to a Windows host via the win\_template module.  
Then I go and use `the raw module to execute that script:`

` `

- name: Copy PowerShell script to remote host  
win\_template:  
src: /container/ansible/roles/test/templates/download\_s3\_bucket.ps1.j2  
dest: “c:\s3downloads\download\_s3\_bucket.ps1”

- name: Download Installer from S3 bucket  
raw: “powershell.exe -ExecutionPolicy Bypass -File ‘c:\s3downloads\download\_s3\_bucket.ps1’”

` `

The second task continuously fails, all the time, after about 60 seconds.

This is the output:

`

---

<div class="post-metadata">

**Author:** ![David\_O\_Brien](https://avatars.discourse-cdn.com/v4/letter/d/c0e974/32.png) [@David\_O\_Brien](https://forum.ansible.com/u/David_O_Brien)\
**Post date:** [April 1, 2016, 11:54pm UTC](https://forum.ansible.com/t/ansible-winrm-timeout/21042/2 "2016-04-01T23:54:24Z")

</div>

Added issue here: [https://github.com/diyan/pywinrm/issues/91](https://github.com/diyan/pywinrm/issues/91)
