git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Pfeiffer <harald.pfeiffer _ bechtle.com> 2019-08-16 16:44:22 +0200
committerHarald Pfeiffer <harald.pfeiffer _ bechtle.com> 2019-08-16 16:44:22 +0200
commit2bdddbbe40f972b7e976ecb03a982c6521db2269 (patch)
tree0b0a0981bec48bdccf351948cdc134da7f05819b
parentb5e420d0ff101d8b83870b4700967863fe3effb4 (diff)
downloadansible-2bdddbbe40f972b7e976ecb03a982c6521db2269.tar.bz2
more debug in reboot
-rw-r--r--apt-upgrade.yml12
1 files changed, 9 insertions, 3 deletions
diff --git a/apt-upgrade.yml b/apt-upgrade.yml
index b00f42c..f06524f 100644
--- a/apt-upgrade.yml
+++ b/apt-upgrade.yml
@@ -149,6 +149,12 @@
- nrex.stat.executable == true
- name: Reboot if outdated kernel
reboot:
- reboot_timeout: 240
- test_command: uname -a
- reboot_delay: 120
+ reboot_timeout: "240"
+ post_reboot_delay: "120"
+ become: true
+ register: rbt
+ - name: Stats
+ debug:
+ msg: "Reboot took {{rbt.elapsed}} seconds."
+ when:
+ - rbt.elapsed != ""