git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Pfeiffer <harald.pfeiffer _ bechtle.com> 2019-08-16 16:47:24 +0200
committerHarald Pfeiffer <harald.pfeiffer _ bechtle.com> 2019-08-16 16:47:24 +0200
commitd04bab2bd6dbf401b86454e7c0f001429089cf30 (patch)
treecf5c48890b7545c758523e0e19502bd5adbee0bb
parent2bdddbbe40f972b7e976ecb03a982c6521db2269 (diff)
downloadansible-d04bab2bd6dbf401b86454e7c0f001429089cf30.tar.bz2
only reboot when kernel has been patched
-rw-r--r--apt-upgrade.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-upgrade.yml b/apt-upgrade.yml
index f06524f..b92260e 100644
--- a/apt-upgrade.yml
+++ b/apt-upgrade.yml
@@ -153,6 +153,8 @@
post_reboot_delay: "120"
become: true
register: rbt
+ when:
+ - kernout.rc != 0
- name: Stats
debug:
msg: "Reboot took {{rbt.elapsed}} seconds."