Hi,
I have this strange issue. The following code was working fine (I think)
as :
- name: Verify Python-3.4.1.tgz download
stat: path=/tmp/Python-3.4.1.tgz
register: a
- name: Extract archive
unarchive:
src=/tmp/Python-3.4.1.tgz
dest=/home/{{ user_installer }}/src
That doesn't quite follow for me.
However, I think you might really want this:
when: a is defined and a.stat.isfile
OR (depending on use case)
when: a is defined and not a.stat.isfile
Maybe try one of those first...
On Thu, Jul 24, 2014 at 9:32 AM, 'Diogene Laerce' via Ansible Project