mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
Add playbook example for first_available_file
This commit is contained in:
parent
3804910187
commit
aa8ae85070
2 changed files with 29 additions and 0 deletions
|
@ -391,6 +391,7 @@ class Runner(object):
|
|||
# apply templating to source argument
|
||||
inject = self.setup_cache.get(conn.host,{})
|
||||
|
||||
# FIXME: break duplicate code up into subfunction
|
||||
# if we have first_available_file in our vars
|
||||
# look up the files and use the first one we find as src
|
||||
if 'first_available_file' in self.module_vars:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue