From e9104c64f2412185396640217a006a62c960eaf4 Mon Sep 17 00:00:00 2001 From: Vezpi Date: Wed, 3 Jun 2026 18:47:15 +0000 Subject: [PATCH] fix: use inventory_hostname_short --- ansible/proxmox/update_proxmox.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/proxmox/update_proxmox.yml b/ansible/proxmox/update_proxmox.yml index 9a38b57..c651830 100644 --- a/ansible/proxmox/update_proxmox.yml +++ b/ansible/proxmox/update_proxmox.yml @@ -69,7 +69,7 @@ - name: Enable maintenance mode ansible.builtin.command: > - ha-manager crm-command node-maintenance enable {{ inventory_hostname }} + ha-manager crm-command node-maintenance enable {{ inventory_hostname_short }} ########################################################## # Wait until node empty @@ -161,7 +161,7 @@ - name: Disable maintenance mode ansible.builtin.command: > - ha-manager crm-command node-maintenance disable {{ inventory_hostname }} + ha-manager crm-command node-maintenance disable {{ inventory_hostname_short }} rescue: @@ -176,7 +176,7 @@ user: "{{ ntfy_user }}" password: "{{ ntfy_password }}" force_basic_auth: true - body: Update failed on {{ inventory_hostname }} + body: Update failed on {{ inventory_hostname_short }} headers: Title: "Proxmox cluster update failed" Priority: "5"