mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-07 11:13:10 +00:00
Support tilde (~) paths for unarchive creates tests
This expands the value of the creates parameter the same way which the value of the dest parameter is already being expanded. Fixes #26965
This commit is contained in:
committed by
Brian Coca
parent
bc30dddb81
commit
779d05aec4
@@ -66,6 +66,7 @@ class ActionModule(ActionBase):
|
||||
# do not run the command if the line contains creates=filename
|
||||
# and the filename already exists. This allows idempotence
|
||||
# of command executions.
|
||||
creates = self._remote_expand_user(creates)
|
||||
if self._remote_file_exists(creates):
|
||||
result['skipped'] = True
|
||||
result['msg'] = "skipped, since %s exists" % creates
|
||||
|
||||
Reference in New Issue
Block a user