git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Pfeiffer <coding _ lirion.de> 2021-03-29 18:44:34 +0200
committerHarald Pfeiffer <coding _ lirion.de> 2021-03-29 18:44:34 +0200
commita90070a5dbde4c1e54da1addadbf945593526ea8 (patch)
treeffdeecd3e10d1a482ba156e5822214ffc38298ed
parent2956a5979bc4a60024ce82b25a29c4887eeb58cd (diff)
downloadansible-a90070a5dbde4c1e54da1addadbf945593526ea8.tar.bz2
in the spririt of all other reboots, be more offensive on deb as well. we expect this playbook to potentially reboot anyway.
-rw-r--r--patch.yml3
1 files changed, 2 insertions, 1 deletions
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