fix: remove dashes in jinja conditions

This commit is contained in:
2026-07-14 20:36:24 +00:00
parent 29ba93e096
commit 2d1c4c9934

View File

@@ -402,25 +402,24 @@
password: "{{ lookup('env', 'NTFY_PASSWORD') }}"
force_basic_auth: true
body: |
{%- if same_operation -%}
{%- if m.skip_update | default(false) -%}
{% if same_operation %}
{% if m.skip_update | default(false) %}
Both nodes already on {{ m.firmware_current_version }}, no action taken.
{%- else -%}
{% else %}
OPNsense cluster: {{ m.firmware_current_version }} → {{ m.firmware_target_value }} ({{ m.firmware_status }})
{%- endif -%}
{%- else -%}
{%- if m.skip_update | default(false) -%}
{% endif %}
{% else %}
{% if m.skip_update | default(false) %}
MASTER ({{ master }}): already on {{ m.firmware_current_version }}, no action taken.
{%- else -%}
{% else %}
MASTER ({{ master }}): {{ m.firmware_current_version }} → {{ m.firmware_target_value }} ({{ m.firmware_status }})
{%- endif %}
{{ '\n' }}
{%- if b.skip_update | default(false) -%}
{% endif %}
{% if b.skip_update | default(false) %}
BACKUP ({{ backup }}): already on {{ b.firmware_current_version }}, no action taken.
{%- else -%}
{% else %}
BACKUP ({{ backup }}): {{ b.firmware_current_version }} → {{ b.firmware_target_value }} ({{ b.firmware_status }})
{%- endif -%}
{%- endif -%}
{% endif %}
{% endif %}
headers:
Title: >-
{%- if m.skip_update | default(false) and b.skip_update | default(false) -%}