You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
With the Ansible yum module, can I install an RPM that is local to the server that I'm deploying to? In other words, can I do something like this using ansible, but using the yum module?
- name: install nginx rpm from a local file
yum: name=/usr/local/src/nginx-release-centos-6-0.el6.ngx.noarch.rpm state=present
But is this the same as yum localinstall? Or, does this install an RPM on the destination that exists on the machine I running ansible-playbook from?
Nicolas G
unread,
Jan 15, 2015, 7:58:23 AM1/15/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
If I'm not wrong it acts like the yum command, if the rpm exist locally the yum module will just work like the yum localinstall command.
In your example this will install the RPM on the destination system as long you don't have anywhere defined "connection: local or local_action" .
Toshio Kuratomi
unread,
Jan 15, 2015, 10:36:23 AM1/15/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
It's the same as yum localinstall in that the rpm needs to be present
on the remote system. If you have it on the local system, do a copy
task first to copy it remotely then use the yum module to install it.