git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/reboot.yml
blob: 5297c00ee1c0b0c1b0c83eba1aba0d499a8f66cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
- hosts: lirion
  tasks:
  - name: Reboot system
    reboot:
      reboot_timeout: "180"
    become: true
    register: rbt
  - name: Stats
    debug:
      msg: "Reboot took {{rbt.elapsed}} seconds."
    when:
      - rbt.elapsed != ""