# Problems with ansible2.5.

**URL:** <https://forum.ansible.com/t/problems-with-ansible2-5/27379>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [April 26, 2018, 6:12am UTC](https://forum.ansible.com/t/problems-with-ansible2-5/27379 "2018-04-26T06:12:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![12177589](https://avatars.discourse-cdn.com/v4/letter/1/e19adc/32.png) [@12177589](https://forum.ansible.com/u/12177589)\
**Post date:** [April 26, 2018, 6:12am UTC](https://forum.ansible.com/t/problems-with-ansible2-5/27379/1 "2018-04-26T06:12:21Z")

</div>

Previously, ansible2.4 can run normally, and after upgrading 2.5, it is wrong. As long as win\_copy is executed, the win\_template will report the error.  
Run again, because win\_copy skips, there is no problem.

yml:

**- hosts: appserver**  
**tasks:**  
**- name: 创建目录({{RTServicePath}}/RTService)**  
**win\_copy:**  
**src: /var/lib/awx/projects/trace/RTService/trace\_ws\_service**  
**dest: “{{RTServicePath}}”**

**- name: 创建车间服务配置文件**  
**win\_template:**  
**src: /var/lib/awx/projects/trace/RTService/templateFile/application\_ws.yml.j2**  
**dest: “{{RTServicePath}}\trace\_ws\_service\application.yml”**

error info:

**task path: /var/lib/awx/projects/trace/test.yml:13**  
**11:42:00**

**\<192.168.227.224\> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO 192.168.227.224**

**EXEC (via pipeline wrapper)**

**EXEC (via pipeline wrapper)**

**The full traceback is:**

**Traceback (most recent call last):**

**File “/usr/lib/python2.7/dist-packages/ansible/executor/task\_executor.py”, line 138, in run**

**res = self.\_execute()**

**File “/usr/lib/python2.7/dist-packages/ansible/executor/task\_executor.py”, line 554, in \_execute**

**result = self.\_handler.run(task\_vars=variables)**

**File “/usr/lib/python2.7/dist-packages/ansible/plugins/action/template.py”, line 137, in run**

**local\_tempdir = tempfile.mkdtemp(dir=C.DEFAULT\_LOCAL\_TMP)**

**File “/usr/lib/python2.7/tempfile.py”, line 339, in mkdtemp**

**\_os.mkdir(file, 0700)**

**OSError: [Errno 2] No such file or directory: ‘/var/lib/awx/.ansible/tmp/ansible-local-3lHNKtn/tmpkJHb84’**

**fatal: [192.168.227.224]: FAILED! =\> {**

**“msg”: “Unexpected failure during module execution.”,**

**“stdout”: “”**

**}**

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [April 26, 2018, 6:18am UTC](https://forum.ansible.com/t/problems-with-ansible2-5/27379/2 "2018-04-26T06:18:05Z")

</div>

This was fixed in Ansible 2.5.1 [https://github.com/ansible/ansible/pull/37964](https://github.com/ansible/ansible/pull/37964). Please upgrade to that version and the problem should go away.

Thanks

Jordan
