This commit is contained in:
2026-02-05 18:12:49 +02:00
parent 7a23ad14a2
commit f5d017c23a

View File

@@ -645,7 +645,8 @@
- name: Append connection method decision to journal
ansible.builtin.set_fact:
_journal: "{{ _journal + [ 'Connection method for DEV2: ' ~ dev2_conn_method ~ (dev2_conn_method == 'direct_lldp' | ternary(' (' ~ (dev2_ssh_host | default('')) ~ ')','')) ] }}"
_journal: "{{ _journal + [ 'Connection method for DEV2: ' ~ dev2_conn_method ~ (((dev2_conn_method == 'direct_lldp') | ternary(' (' ~ (dev2_ssh_host | default('')) ~ ')',''))) ] }}"
# ---- Apply hostname policy: soft-fail for other ikejaNNNN, warn+customfield for "weird" names ----
- name: Soft-block if DEV2 hostname is another ikeja<number> (probable wrong indoor)
@@ -1670,7 +1671,8 @@
state: absent
ignore_errors: true
- name: Remove temporary IP on DEV1 (tolerate 'Cannot assign requested address')
- name: Remove temporary IP on DEV1 (tolerate 'Cannot assign requested address' and 'Address not available')
when: dev2_conn_method | default('') == "tunnel"
ansible.builtin.raw: >
{{ pathprefix }}
ip a del {{ dev2_side_ip }} dev {{ dev1_iface }}
@@ -1680,6 +1682,11 @@
del_ip.rc != 0
and ('Cannot assign requested address' not in (del_ip.stdout | default('')))
and ('Cannot assign requested address' not in (del_ip.stderr | default('')))
and ('Address not available' not in (del_ip.stdout | default('')))
and ('Address not available' not in (del_ip.stderr | default('')))
and ('RTNETLINK answers: Address not available' not in (del_ip.stdout | default('')))
and ('RTNETLINK answers: Address not available' not in (del_ip.stderr | default('')))
- name: Debug temp IP removal result
ansible.builtin.debug: