mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Clean up unarchive action plugin (#17429)
This commit is contained in:
parent
f5a4677680
commit
1df924e1d5
1 changed files with 1 additions and 3 deletions
|
@ -67,9 +67,7 @@ class ActionModule(ActionBase):
|
||||||
# do not run the command if the line contains creates=filename
|
# do not run the command if the line contains creates=filename
|
||||||
# and the filename already exists. This allows idempotence
|
# and the filename already exists. This allows idempotence
|
||||||
# of command executions.
|
# of command executions.
|
||||||
result = self._execute_module(module_name='stat', module_args=dict(path=creates), task_vars=task_vars)
|
if self._remote_file_exists(creates):
|
||||||
stat = result.get('stat', None)
|
|
||||||
if stat and stat.get('exists', False):
|
|
||||||
result['skipped'] = True
|
result['skipped'] = True
|
||||||
result['msg'] = "skipped, since %s exists" % creates
|
result['msg'] = "skipped, since %s exists" % creates
|
||||||
self._remove_tmp_path(tmp)
|
self._remove_tmp_path(tmp)
|
||||||
|
|
Loading…
Reference in a new issue