From fe87a16a3e3f85b3c903966a614791c99c9fd634 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 1 Aug 2012 22:27:07 -0400 Subject: [PATCH] Make yum module use one-pass with with_items --- lib/ansible/runner/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index e38dc915184..f88e016f436 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -485,7 +485,7 @@ class Runner(object): if type(items) != list: raise errors.AnsibleError("with_items only takes a list: %s" % items) - if self.module_name in [ 'apt' ]: + if self.module_name in [ 'apt', 'yum' ]: # hack for apt and soon yum, with_items maps back into a single module call inject['item'] = ",".join(items) items = []