First time posting on here, and I love Ansible with a passion!
I have a question regarding the builtin DNF (RHEL package manager) module.
I have a playbook which pushes DNF to install security updates on all of my RHEL-like servers. It does a great job, but I never get any return information. I’ve checked the module documentation and it doesn’t appear to support any return values/text.
Perhaps there is nothing to upgrade on your target machines ? What does dnf check-update --security gives on one of theses machines ? (since you specifically ask for security updates).
It could also be a bad interaction with ’ ignore_errors’, but I fail to see why it would be.
You could also have ‘no_log: true’ set somewhere else ?
Could you share the output you get when registering your upgrade task ?
Another option would be to get last upgrade result from a command like: dnf history info $(dnf history | tail -n+3 | head -n1 | awk '{print $1}') (I’m not sure if there is an Ansible module for that.), or query package cache for recently modified packages.
Hi @LoZ! Did you get a chance to try that solution?
If so, it would be super helpful if you could click the on their post to accept the solution - it helps users find solutions (solved topics have a higher search priority), recognises the input of the people who help you, helps our volunteers find new issues to answer, and keeps the forum nice and tidy. It’s just a nice way to give back, and only takes a moment
Thanks!
(this is template reply, do feel free to reply if I’ve misunderstood the situation!)