ansible/ansible — pull request #551 by rtirrell (2012-07-08 05:36:46+00:00)
Title: Branch right.

As I posted to the ML:

# apply templating to source argument
inject = self.setup_cache.get(conn.host,{})

# ... find first available file

if self.module_vars is not None:
inject.update(self.module_vars)

It looks like the solution could be as easy as moving the update statement above the first-available-file lookup -- presuming that this isn't bad in some way I haven't grasped.