Skip to content

Commit

Permalink
issue #12 - tweak reboot handling
Browse files Browse the repository at this point in the history
  • Loading branch information
zerwes committed Aug 25, 2024
1 parent e65b52d commit 7aae81e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ opn_update_wait_for_reboot_4_major_upgrade: 1800

# run a extra pkg upgrade after a upgrade
opn_update_pkg_upgrade: true


# tweak reboot handling
post_reboot_delay: 30
reboot_throttle: 1

...
4 changes: 4 additions & 0 deletions tasks/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
reboot_command: /usr/local/etc/rc.firmware
reboot_timeout: "{{ _opn_reboot_timeout }}"
connect_timeout: 20
post_reboot_delay: "{{ post_reboot_delay }}"
throttle: "{{ reboot_throttle }}"
when:
- _opn_reboot_required or opn_update_force
- not _opn_major_update or opn_update_force
Expand All @@ -94,6 +96,8 @@
reboot_command: /usr/local/etc/rc.firmware upgrade {{ _opn_update_desired_base[0] }}.{{ _opn_update_desired_base[1] }}
reboot_timeout: "{{ _opn_reboot_timeout }}"
connect_timeout: 20
post_reboot_delay: "{{ post_reboot_delay }}"
throttle: "{{ reboot_throttle }}"
when:
- _opn_reboot_required
- _opn_major_update
Expand Down

0 comments on commit 7aae81e

Please sign in to comment.