From a90070a5dbde4c1e54da1addadbf945593526ea8 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Mon, 29 Mar 2021 18:44:34 +0200 Subject: in the spririt of all other reboots, be more offensive on deb as well. we expect this playbook to potentially reboot anyway. --- patch.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patch.yml b/patch.yml index 5cfb5d3..aa58ee2 100644 --- a/patch.yml +++ b/patch.yml @@ -141,8 +141,9 @@ changed_when: - nrex.stat.exists == true - nrex.stat.executable == true + # we listen to "debian upd" here in case a previous reboot was not executed. If undesired, change to "debian updates available". notify: "debian needrestart" - listen: "debian updates available" + listen: "debian upd" - name: Check for outdated kernel (Debian) shell: /usr/sbin/needrestart -pk register: kernout -- cgit v1.2.3