I think I replied to the previous copy of this one, please see the other
thread.

It can sometimes be confusing as the very first post to the list is
moderated to prevent spam, so I occasionally double approve a duplicate
post.




On Thu, Jul 24, 2014 at 10:11 AM, 'Diogene Laerce' via Ansible Project <
ansible-project@googlegroups.com> wrote:

> 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
> copy=no
> when: a.stat.isfile is not defined
>
> ############################
>
> Until today I enable it again in the playbook and it now works "upside
> down" :
> It does extract the archive only when a.stat.isfile is not defined and
> when "a.stat.isfile is defined and a.stat.isfile == true" : it just
> skips the whole code.
>
> I rewrite this as it seems that the "isdir" directive works just as it
> should. So I guess the issue comes from the "isfile" statement and my
> new question : is there a list of all arguments taken by the stat module
> ? I couldn't find one.
>
> Thank you
>
> --
> “One original thought is worth a thousand mindless quotings.”
> “Le vrai n'est pas plus sûr que le probable.”
>
>                                               Diogene Laerce
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgzhsaqpd9m%3DtzcLvqMkPNBf9G4vqjhOASJ%2B%3DAAmUAWtzA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to