You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Klaas- Can you confirm the following? While python3-dnf-plugins-core seems to be included in the minimal install environment of RHEL 8 providing /usr/bin/dnf needs-restarting -r you have to install yum-utils on RHEL 7 based on minimal install envirionment to be able to use the command, right?
The text was updated successfully, but these errors were encountered:
The package yum-utils exists in RHEL 7, 8 and 9. I tend to declare it as a role dependency for this role and relinquish the use of needs_restarting_command var I would need otherwise.
if you don't want to go the minimal way you can just make sure yum-utils is present via your role, that's going to be the easiest solution. I personally like to avoid the yum compatibility layer.
I would like to start this issue to a follow up on a comment from @Klaas-:
you can use needs-restarting, but it uses shell/command
definition of the var
usage in the reboot task:
when: needs_restarting.rc is defined and needs_restarting.rc != 0
on rhel7 deps are
yum-utils
, on rhel8python3-dnf-plugins-core
Originally posted by @Klaas- in #12 (comment)
@Klaas- Can you confirm the following? While
python3-dnf-plugins-core
seems to be included in the minimal install environment of RHEL 8 providing/usr/bin/dnf needs-restarting -r
you have to installyum-utils
on RHEL 7 based on minimal install envirionment to be able to use the command, right?The text was updated successfully, but these errors were encountered: