I submitted a pull request to fix this issue: https://github.com/ansible/ansible/pull/8116 The reason is that the creates option is checked in /library/files/unarchive after it's already been copied in /lib/ansible/runner/action_plugins/unarchive.py. Simply shifting the check to the action_plugin prevents an unnecessary file transfer.
On Sunday, 14 September 2014 13:18:32 UTC+1, Olivier Javaux 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? > > > On Sunday, 14 September 2014 13:18:32 UTC+1, Olivier Javaux 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/797e2050-268b-4b7a-82de-a2dcbd28c7b4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
