diff --git a/platform/proxmox/ansible/roles/pve-host/handlers/main.yml b/platform/proxmox/ansible/roles/pve-host/handlers/main.yml index f896cd1..056b94d 100644 --- a/platform/proxmox/ansible/roles/pve-host/handlers/main.yml +++ b/platform/proxmox/ansible/roles/pve-host/handlers/main.yml @@ -3,6 +3,9 @@ ansible.builtin.command: update-initramfs -u -k all changed_when: true +# proxmox-boot-tool nur bei ZFS-Root (Variante A). Ohne proxmox-boot-uuids endet es trotzdem mit +# Exit 0, deshalb nicht als `refresh || update-grub` verketten (sonst bleibt grub.cfg alt). - name: refresh boot - ansible.builtin.shell: proxmox-boot-tool refresh 2>/dev/null || update-grub + ansible.builtin.shell: | + if [ -f /etc/kernel/proxmox-boot-uuids ]; then proxmox-boot-tool refresh; else update-grub; fi changed_when: true