1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Make yum module use one-pass with with_items

This commit is contained in:
Michael DeHaan 2012-08-01 22:27:07 -04:00
parent 91d31d8164
commit fe87a16a3e

View file

@ -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 = []