Add playbook example for first_available_file

This commit is contained in:
Michael DeHaan 2012-04-26 23:03:14 -04:00
parent 3804910187
commit aa8ae85070
2 changed files with 29 additions and 0 deletions

View file

@ -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: