Sorry if I reply to an obsolete thread, but here's a usecase that I just encountered that might make this useful: When one wants to add a yum repository(For instance when he wants to install the MySQL community repo), the only option is to do this from a local rpm, thus making it useful to be able to use yum locainstall from within the playbook. Of course, an easy workaround is using the shell action, and writing the command manually(which isn't very hard).
On Wednesday, May 9, 2012 2:38:42 AM UTC+3, Michael DeHaan wrote: > > Replies inline. > > On Tuesday, May 8, 2012 at 6:46 PM, felix wrote: > > Any plans to have the yum module be able to localinstall local rpms? > Sometimes, I just want my own files outside of what is available so it'd be > pleasant to be able to just have RPM files for what we need and install > them when necessary... > > > I think the plans for any open source project need to be well understood > -- they are what the maintainer needs or wants of them. As such, this use > case isn't really one I need -- and I would like to understand your needs > better, especially why a yum repo is not a good option, because those > only transfer the content on demand. > > I don't think it's out of hand to take a patch to let the yum module take > name as a filesystem path or something, but I also don't understand why > you're needing it. Help me understand first :) > > > As a corollary to this - at what point do files get transferred from the > local machine to the target host? Was looking through the copy module and > the md5summing all seemed to already be happening on the host, is the model > that all things are transferred immediately and then comparisons done? Or > is it magically checking a local sum and a remote sum and only transferring > in the event that they are diff't? > > > The copy, template, and raw modules are a bit special, all of the other > modules are pretty much standard. We don't bother md5sum'ing the module > sources because they are pretty small, and due to the way paramiko forces > us to do sudo handling, we have to do more connection closing in sudo mode > and it's desirable to minimize the ops. > > That all being said, I have some refactoring plans for play books and some > capabilities I'll discuss in a later email. > > > > Thanks! > > felix > > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/251ae64c-1272-45cf-8acf-097f6ff54b42%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
