fix: use inventory_hostname_short
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user