Skip to content

Commit 8dcccb9

Browse files
committed
Fix reboot handler
1 parent ee77399 commit 8dcccb9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

etc/kayobe/ansible/pci-passthrough.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
become: true
3535
notify:
3636
- Regenerate initramfs
37-
- Reboot
37+
- reboot
3838

3939
- name: Add vfio to modules-load.d
4040
ansible.builtin.blockinfile:
@@ -63,7 +63,7 @@
6363
create: true
6464
become: true
6565
notify:
66-
- Reboot
66+
- reboot
6767
- Regenerate initramfs
6868

6969
- name: Ignore unsupported model specific registers
@@ -90,7 +90,7 @@
9090
group: root
9191
create: true
9292
become: true
93-
notify: Reboot
93+
notify: reboot
9494

9595
- name: Add vfio-pci.ids kernel args
9696
ansible.builtin.include_role:
@@ -126,7 +126,9 @@
126126
changed_when: true
127127
when: ansible_facts.os_family == 'Debian'
128128

129-
- name: Reboot
129+
# NOTE(Alex-Welsh): This handler must be named "reboot" (case sensitive)
130+
# because it is called by stackhpc.grubcmdline
131+
- name: reboot
130132
become: true
131133
ansible.builtin.reboot:
132134
reboot_timeout: "{{ reboot_timeout_s }}"

0 commit comments

Comments
 (0)