<h1 dir="auto">info</h1>
<p dir="auto">same works perfectly under ansible 1.8</p>
<h1 dir="auto">code</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Unpack CloudWatch package
  unarchive: src=/tmp/cloudwatch.zip dest=/usr/local copy=no
  when: cloudwatch.stat.isdir is not defined or not cloudwatch.stat.isdir"><pre class="notranslate"><code class="notranslate">- name: Unpack CloudWatch package
  unarchive: src=/tmp/cloudwatch.zip dest=/usr/local copy=no
  when: cloudwatch.stat.isdir is not defined or not cloudwatch.stat.isdir
</code></pre></div>
<h1 dir="auto">output</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [aws : Unpack CloudWatch package] ******************************************
fatal: [enigma14]: FAILED! =&gt; {&quot;msg&quot;: &quot;ERROR! file or module does not exist: /tmp/cloudwatch.zip&quot;, &quot;failed&quot;: true}"><pre class="notranslate"><code class="notranslate">TASK [aws : Unpack CloudWatch package] ******************************************
fatal: [enigma14]: FAILED! =&gt; {"msg": "ERROR! file or module does not exist: /tmp/cloudwatch.zip", "failed": true}
</code></pre></div>
<h1 dir="auto">version</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible --version
ansible 2.0.0 (devel ff251a0dcc) last updated 2015/06/22 10:38:58 (GMT +200)
  lib/ansible/modules/core: (detached HEAD d6ed6113a7) last updated 2015/06/22 09:38:14 (GMT +200)
  lib/ansible/modules/extras: (detached HEAD 57813a2e74) last updated 2015/06/22 09:38:14 (GMT +200)
  v1/ansible/modules/core: (detached HEAD f8d8af17cd) last updated 2015/06/22 09:38:14 (GMT +200)
  v1/ansible/modules/extras: (detached HEAD 495ad450e5) last updated 2015/06/22 09:38:14 (GMT +200)
  configured module search path = None"><pre class="notranslate"><code class="notranslate">ansible --version
ansible 2.0.0 (devel ff251a0dcc) last updated 2015/06/22 10:38:58 (GMT +200)
  lib/ansible/modules/core: (detached HEAD d6ed6113a7) last updated 2015/06/22 09:38:14 (GMT +200)
  lib/ansible/modules/extras: (detached HEAD 57813a2e74) last updated 2015/06/22 09:38:14 (GMT +200)
  v1/ansible/modules/core: (detached HEAD f8d8af17cd) last updated 2015/06/22 09:38:14 (GMT +200)
  v1/ansible/modules/extras: (detached HEAD 495ad450e5) last updated 2015/06/22 09:38:14 (GMT +200)
  configured module search path = None
</code></pre></div>
<h1 dir="auto">server status</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ubuntu@ubuntu:/tmp$ ls
cloudwatch.zip"><pre class="notranslate"><code class="notranslate">ubuntu@ubuntu:/tmp$ ls
cloudwatch.zip
</code></pre></div>
<p dir="auto">I have a playbook to install python.  Works great under 1.8.4. Worked for a long time under 1.9.x.  Fails today on 2.0.0-devel</p>
<p dir="auto">I threw in the stat code for testing, but it doesn't make it work.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: configure /usr/src/python permissions
  file: &quot;dest=/usr/src/python state=directory owner={{ ansible_ssh_user }} group={{ ansible_ssh_user }} recurse=yes&quot;
  sudo: yes
- name: get python
  get_url: &quot;url=http://www.python.org/ftp/python/{{ python_version }}/Python-{{ python_version }}.tar.xz dest=/usr/src/python&quot;
- stat: &quot;path=/usr/src/python/Python-{{ python_version }}.tar.xz&quot;
  register: st
- name: unarchive python
  unarchive: &quot;src=/usr/src/python/Python-{{ python_version }}.tar.xz dest=/usr/src/python copy=no&quot;
  when: st.stat.exists == True"><pre class="notranslate"><code class="notranslate">- name: configure /usr/src/python permissions
  file: "dest=/usr/src/python state=directory owner={{ ansible_ssh_user }} group={{ ansible_ssh_user }} recurse=yes"
  sudo: yes
- name: get python
  get_url: "url=http://www.python.org/ftp/python/{{ python_version }}/Python-{{ python_version }}.tar.xz dest=/usr/src/python"
- stat: "path=/usr/src/python/Python-{{ python_version }}.tar.xz"
  register: st
- name: unarchive python
  unarchive: "src=/usr/src/python/Python-{{ python_version }}.tar.xz dest=/usr/src/python copy=no"
  when: st.stat.exists == True
</code></pre></div>
<p dir="auto">The error I get:<br>
fatal: [aws-ansible]: FAILED! =&gt; {"msg": "ERROR! file or module does not exist: /usr/src/python/Python-2.7.10.tar.xz", "failed": true}</p>