Skip to content

Commit ce12cc0

Browse files
committed
Make reboot timeout configurable in Ubuntu Jammy upgrade
1 parent bde1427 commit ce12cc0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

etc/kayobe/ansible/ubuntu-upgrade.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
hosts: overcloud:infra-vms:seed:seed-hypervisor
66
vars:
77
ansible_python_interpreter: /usr/bin/python3
8+
reboot_timeout_s: "{{ 20 * 60 }}"
89
tasks:
910
- name: Assert that hosts are running Ubuntu Focal
1011
assert:
@@ -37,7 +38,7 @@
3738

3839
- name: Reboot to apply updates
3940
reboot:
40-
reboot_timeout: 1200
41+
reboot_timeout: "{{ reboot_timeout_s }}"
4142
connect_timeout: 600
4243
become: true
4344
when: file_status.stat.exists
@@ -81,6 +82,7 @@
8182
hosts: overcloud:infra-vms:seed:seed-hypervisor
8283
vars:
8384
ansible_python_interpreter: /usr/bin/python3
85+
reboot_timeout_s: "{{ 20 * 60 }}"
8486
tasks:
8587
- name: Ensure Jammy repo definitions do not exist in sources.list
8688
blockinfile:
@@ -97,7 +99,7 @@
9799

98100
- name: Reboot and wait
99101
reboot:
100-
reboot_timeout: 1200
102+
reboot_timeout: "{{ reboot_timeout_s }}"
101103
connect_timeout: 600
102104
become: true
103105

0 commit comments

Comments
 (0)