I have to install dozen of rpms located in a specific directory using ansible. Right now I'm using the syntax like:
- name: install uploaded rpms
command: rpm -ivh /tmp/*.rpm
I want to do it using yum module, but don't know, how to tell it to install all rpms in a directory (not to specify name of each file).
Any suggestions?
Thanks in advance