mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 07:05:27 +01:00
Compare commits
3 commits
38ce16e8af
...
04693cdbb9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
04693cdbb9 | ||
|
|
e31700d993 | ||
|
|
22d50a3903 |
2 changed files with 4 additions and 4 deletions
3
changelogs/fragments/synchronize.yml
Normal file
3
changelogs/fragments/synchronize.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
bugfixes:
|
||||
- synchronize - use _find_needle to find the file in path (https://github.com/ansible-collections/ansible.posix/issues/381).
|
||||
|
|
@ -48,10 +48,7 @@ class ActionModule(ActionBase):
|
|||
if ':' in path or path.startswith('/'):
|
||||
return path
|
||||
|
||||
if self._task._role is not None:
|
||||
path = self._loader.path_dwim_relative(self._task._role._role_path, 'files', path)
|
||||
else:
|
||||
path = self._loader.path_dwim_relative(self._loader.get_basedir(), 'files', path)
|
||||
path = self._find_needle('files', path)
|
||||
|
||||
if original_path and original_path[-1] == '/' and path[-1] != '/':
|
||||
# make sure the dwim'd path ends in a trailing "/"
|
||||
|
|
|
|||
Loading…
Reference in a new issue