If you are just giving the package name (without a version) then the yum module will check if that is installed. It is so no task needs to be performed. If you were using a repository you would find no difference. If you were using a repository and set the state to latest it would update but that is not valid for a local package. Your best bet is to specify the full package name, with version (or use a repository)
What is your output? What’s wierd is that in the output it doesn’t even tell me that my RPM is already installed. It has blank results:
ok: [10.0.201.83] => {“changed”: false, “msg”: “”, “rc”: 0, “results”: }
Hmm, that’s too bad. So you’re just using the command module to do it manually?
It seems strange that it doesn’t even say “package is already present.” When I use the zypper module on SLES on the same RPM file, it at least gives me that feedback in the results.