ansible/ansible — pull request #1068 by dhozac (2012-09-21 08:56:55+00:00)
Title: Pass module arguments as argument instead of keeping it in runner

This cleans up self.runner.module_args by making it an argument to the functions that need it. In doing so, it also fixes running playbooks with -f 1, as they would previously run with whatever arguments the first node had.

It breaks the action_plugin API, but I think this is better to do now than later, and there's not really any good alternative. If backwards compatability is an issue, we could perhaps catch that exception and retry without it, but that seems ugly...

This will need to rebased on top of #1064 once that gets merged, but I figured I should get comments on the plugin API first.