fix: use inventory_hostname_short
This commit is contained in:
@@ -69,7 +69,7 @@
|
|||||||
|
|
||||||
- name: Enable maintenance mode
|
- name: Enable maintenance mode
|
||||||
ansible.builtin.command: >
|
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
|
# Wait until node empty
|
||||||
@@ -161,7 +161,7 @@
|
|||||||
|
|
||||||
- name: Disable maintenance mode
|
- name: Disable maintenance mode
|
||||||
ansible.builtin.command: >
|
ansible.builtin.command: >
|
||||||
ha-manager crm-command node-maintenance disable {{ inventory_hostname }}
|
ha-manager crm-command node-maintenance disable {{ inventory_hostname_short }}
|
||||||
|
|
||||||
rescue:
|
rescue:
|
||||||
|
|
||||||
@@ -176,7 +176,7 @@
|
|||||||
user: "{{ ntfy_user }}"
|
user: "{{ ntfy_user }}"
|
||||||
password: "{{ ntfy_password }}"
|
password: "{{ ntfy_password }}"
|
||||||
force_basic_auth: true
|
force_basic_auth: true
|
||||||
body: Update failed on {{ inventory_hostname }}
|
body: Update failed on {{ inventory_hostname_short }}
|
||||||
headers:
|
headers:
|
||||||
Title: "Proxmox cluster update failed"
|
Title: "Proxmox cluster update failed"
|
||||||
Priority: "5"
|
Priority: "5"
|
||||||
|
|||||||
Reference in New Issue
Block a user