1812
This commit is contained in:
@@ -645,7 +645,8 @@
|
|||||||
|
|
||||||
- name: Append connection method decision to journal
|
- name: Append connection method decision to journal
|
||||||
ansible.builtin.set_fact:
|
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 ----
|
# ---- 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)
|
- name: Soft-block if DEV2 hostname is another ikeja<number> (probable wrong indoor)
|
||||||
@@ -1670,7 +1671,8 @@
|
|||||||
state: absent
|
state: absent
|
||||||
ignore_errors: true
|
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: >
|
ansible.builtin.raw: >
|
||||||
{{ pathprefix }}
|
{{ pathprefix }}
|
||||||
ip a del {{ dev2_side_ip }} dev {{ dev1_iface }}
|
ip a del {{ dev2_side_ip }} dev {{ dev1_iface }}
|
||||||
@@ -1680,6 +1682,11 @@
|
|||||||
del_ip.rc != 0
|
del_ip.rc != 0
|
||||||
and ('Cannot assign requested address' not in (del_ip.stdout | default('')))
|
and ('Cannot assign requested address' not in (del_ip.stdout | default('')))
|
||||||
and ('Cannot assign requested address' not in (del_ip.stderr | 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
|
- name: Debug temp IP removal result
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
|
|||||||
Reference in New Issue
Block a user