File tree Expand file tree Collapse file tree
etc/kayobe/ansible/maintenance Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 gather_facts : false
66 vars :
77 reboot_timeout_s : " {{ 20 * 60 }}"
8+ post_reboot_delay_s : 5 # Extra delay to ensure SSH is working reliably
89 reboot_with_bootstrap_user : false
910 ansible_user : " {{ bootstrap_user if reboot_with_bootstrap_user | bool else kayobe_ansible_user }}"
1011 ansible_ssh_common_args : " {{ '-o StrictHostKeyChecking=no' if reboot_with_bootstrap_user | bool else '' }}"
3233 - name : Reboot and wait
3334 become : true
3435 ansible.builtin.reboot :
35- reboot_timeout : " {{ reboot_timeout_s }}"
36+ post_reboot_delay : " {{ post_reboot_delay_s | int }}"
37+ reboot_timeout : " {{ reboot_timeout_s | int }}"
3638 search_paths :
3739 # Systems running molly-guard hang waiting for confirmation before rebooting without this.
3840 - /lib/molly-guard
Original file line number Diff line number Diff line change 1+ ---
2+ features :
3+ - |
4+ Adds an extra delay after reboot in the ``maintenance/reboot.yml`` playbook
5+ to ensure hosts can be reached reliably. The default delay is 5 seconds and
6+ can be customised with the ``post_reboot_delay_s`` variable.
You can’t perform that action at this time.
0 commit comments