The yum module can already take URLs for the package name (I’ve tested it with the EPEL RPM), I haven’t tried it with a local path but as mdehaan noted on the PR we would rather have the yum module extended rather than add another module that covers most of the same ground.
Hmm, I’ve just had problems with that - XenServer 6.2, trying to install an RPM from a local file (as 'copy’ed over to the system). Didn’t want to play ball.
On this topic, I’ve also just now had problems (using a very recent version of devel), which I suspect is the yum module trying to optimise things. The rpms have been downloaded to the target machine using a previous task, and there is a var ‘3rdparty_prereqs’ containing a list of rpm filenames (register:ed via another shell command). This definition amounts to: The failing task looks like this: It fails like this: It seems to be squashing the with_items into one run, passing a comma-delimited list of the filenames to yum as the item to install, losing the necessary paths. Converting the task to a debug shows two correctly constructed paths printed. Is there a way of supplying a path (or paths) to the yum module in cases like this? Also, how does apt handle this sort of thing? Thanks N
To sum it up, if we pass a list of strings to with_items, the yum module will run yum with all items at once.
If we pass a list of compound objects, the yum module will run yum for each item.