Able to extract list of installed rpm using "shell" module but not with yum module

Hi Team,

I am able to extract the selected list of installed rpms using ansible “shell” module ,But when I tried using “yum” module ,it’s no success .
Your help would be appreciated .

The playbook which is running with “shell” module & it’s output is as follows —

Playbook—

Hi Team,

I am able to extract the selected list of installed rpms using ansible "shell" module ,But when I tried using "yum"
module ,it's no success .
Your help would be appreciated .

Hello Pawan,

what's your yum task and the error message you get from the yum module?

Regards
          Racke

Hi Team,

May i get some response to this issue .
Hopefully I am able to explain the problem .

warm regards
Pawan kumar