I believe it may copy the file and only crack it open if it doesn't exist. Regardless, please file a bug report with steps to reproduce so someone can take a look.
(Code-wise, if you want to take a look, this is dealt with lib/ansible/runner/action_plugins/unarchive.py -- the actual ansible module is only the last bit of it) Thanks! On Sun, Sep 14, 2014 at 8:18 AM, Olivier Javaux <[email protected]> wrote: > I am using ansible 1.8 devel > > I have a task like this one: > > - name: something > unarchive: creates=some_file src=src_file.tar.gz dest=dest_dir > > Archive is always copied, even if some_file exists > Browsing through source code, I saw that there is a > runner/action_plugins/unarchive.py > file, which makes me think that there is an action named "unarchive". > In this file, there is no creates option. > Maybe some collision between action and module? > > Please, could you explain me what is wrong? > > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/4b7ee8b1-949b-4bcc-a37e-1ca7c4f9017f%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/4b7ee8b1-949b-4bcc-a37e-1ca7c4f9017f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgxJ9s-v7%2Bw3ZsOdMat%3DGBzEyOohEp%2BgUAMtwNC6Hcdotg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
