I have the below snippet , which installs the local package . However in servers which have not subscribed to satellite/Redhat , the playbook hungs as it continue to search for the repositories in the backgroud.
name: Installing the local rpm rpm packages in the server
yum:
name: /tmp/XXXX-2.3.2.2105-1.x86_64.rpm
state: present
disable_gpg_check: yes
ignore_errors: true
register: result_t1
tags: install_localpackage
In yum module , there is no exact option to skip looking into the yum repositories or cache , to override this step.
Is there any option available in yum to skip looking into yum or have to write a bash script with "rpm -i " to replace it ?
I do not have an RPM based system here to test on. You could use the RPM command line or use the disable_plugin as I suspect fastestmirrors is getting called. I would maybe also try disabling install_repoquery. Yellowdog is designed to check repos, that is the main goal of it.
Thanks , I already checked the link and disable_plugin . Both are not helpful .
I will have to use command/shell - module to call rpm to install the local package