I think something changed somewhere ( not sure if at clients servers because they are newer releases) but suddenly my tasks using the package module are failing because of gpg signature check at Oracle linux and Rhel servers .
I know its an issue from ansible because I see with verbose the gpg check being forced from the ansible play .
We use generic playbooks with the package module (which in time is calling to zypper yum apt etc for each distribution specific package manager) , I know at the yum module we can use disable_gpg_check: yes
But if I use that option with the package module, it works when running on rhel servers, but fails when running against debian / sles or whatever not using yum module because only yum module has that option, and the other package modules do not .
I would love to find a solution in order to avoid gpg check with yum and still use the generic package module .
The manual command yum install at the server works flawless . Also when I run anisble with verbose (-vvv...) I see the gpgcheck yes being pushed