git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--patch.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/patch.yml b/patch.yml
index aedcfb6..fa524d4 100644
--- a/patch.yml
+++ b/patch.yml
@@ -213,6 +213,19 @@
notify: "Reboot if required"
# failed_when necessary to have a change for RC 1 instead of a failure
failed_when: kernout.rc > 1
+ - name: Check for outdated services (Debian, Arch)
+ shell: /usr/sbin/needrestart -pl
+ register: svcout
+ when:
+ - nrex.stat.exists == true
+ - nrex.stat.executable == true
+ become: true
+ changed_when: "svcout.rc|int == 1"
+ listen: "debian arch needrestart"
+ # we'll play it safe here: outdated services? --> reboot.
+ notify: "Reboot if required"
+ # failed_when necessary to have a change for RC 1 instead of a failure
+ failed_when: svcout.rc > 1
- name: Update zypper cache (SUSE)
# we cannot cheat like we did with yum: we need to update any package to refresh the cache with the zypper module. Hence falling back
# to shell.