mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 23:44:00 -07:00
Fix first_available_file: support for copy and template actions
This commit is contained in:
parent
ddac6fa9f3
commit
64a1b1e043
3 changed files with 3 additions and 3 deletions
|
@ -55,7 +55,7 @@ class ActionModule(ActionBase):
|
|||
|
||||
source = self._task.args.get('src', None)
|
||||
dest = self._task.args.get('dest', None)
|
||||
faf = task_vars.get('first_available_file', None)
|
||||
faf = self._task.first_available_file
|
||||
|
||||
if (source is None and faf is not None) or dest is None:
|
||||
return dict(failed=True, msg="src and dest are required")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue