Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion etc/kayobe/ansible/reboot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
gather_facts: false
vars:
reboot_timeout_s: "{{ 20 * 60 }}"
post_reboot_delay_s: 5 # Extra delay to ensure SSH is working reliably
reboot_with_bootstrap_user: false
ansible_user: "{{ bootstrap_user if reboot_with_bootstrap_user | bool else kayobe_ansible_user }}"
ansible_ssh_common_args: "{{ '-o StrictHostKeyChecking=no' if reboot_with_bootstrap_user | bool else '' }}"
Expand Down Expand Up @@ -32,7 +33,8 @@
- name: Reboot and wait
become: true
ansible.builtin.reboot:
reboot_timeout: "{{ reboot_timeout_s }}"
post_reboot_delay: "{{ post_reboot_delay_s | int }}"
reboot_timeout: "{{ reboot_timeout_s | int }}"
search_paths:
# Systems running molly-guard hang waiting for confirmation before rebooting without this.
- /lib/molly-guard
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
features:
- |
Adds an extra delay after reboot in the ``reboot.yml`` playbook to ensure
hosts can be reached reliably. The default delay is 5 seconds and can be
customised with the ``post_reboot_delay_s`` variable.
Loading