This commit is contained in:
2026-01-21 09:37:52 +02:00
parent 51b770daac
commit 0269fd0258
4 changed files with 615 additions and 5 deletions

View File

@@ -589,7 +589,7 @@
changed_when: false
# ============================ PHASE 0 (LAST, BEFORE PPP CHECK): IN-PROGRESS MARKER GUARD ============================
- name: "PHASE 0 (LAST) | DEV2 check: /tmp/ptsd.inprogress marker exists (show-stopper) via wrapper"
- name: "PHASE 0 (LAST) | DEV2 check /tmp/ptsd.inprogress marker exists (show-stopper) via wrapper"
delegate_to: localhost
ansible.builtin.shell: |
export DEV2_CMD="test -f /tmp/ptsd.inprogress && echo YES || echo NO"
@@ -615,7 +615,7 @@
# ============================ PHASE 0 (LAST): DEV2 STATE GUARD (OLD PPP EXPECTED) ============================
- name: "PHASE 0 (LAST) | DEV2 check: ppp0 has IPv4 (old expected) via wrapper"
- name: "PHASE 0 (LAST) | DEV2 check ppp0 has IPv4 (old expected) via wrapper"
delegate_to: localhost
ansible.builtin.shell: |
export DEV2_CMD="ip -4 addr show dev ppp0 2>/dev/null | grep -m1 'inet ' >/dev/null 2>&1 && echo YES || echo NO"
@@ -625,7 +625,7 @@
changed_when: false
failed_when: false
- name: "PHASE 0 (LAST) | DEV2 check: eth0.4000 exists (new/migrated indicator) via wrapper"
- name: "PHASE 0 (LAST) | DEV2 check eth0.4000 exists (new/migrated indicator) via wrapper"
delegate_to: localhost
ansible.builtin.shell: |
export DEV2_CMD="ip link show eth0.4000 >/dev/null 2>&1 && echo YES || echo NO"
@@ -635,7 +635,7 @@
changed_when: false
failed_when: false
- name: "PHASE 0 (LAST) | Detect mixed state: ppp0 present AND eth0.4000 present (should not happen)"
- name: "PHASE 0 (LAST) | Detect mixed state ppp0 present AND eth0.4000 present (should not happen)"
delegate_to: localhost
ansible.builtin.set_fact:
dev2_ppp_present: "{{ (dev2_ppp0_has_ipv4.stdout | default('') | trim) == 'YES' }}"
@@ -648,7 +648,7 @@
}}
changed_when: false
- name: "PHASE 0 (LAST) | Graceful stop: DEV2 has BOTH ppp0 and eth0.4000 (mixed/partial migration)"
- name: "PHASE 0 (LAST) | Graceful stop DEV2 has BOTH ppp0 and eth0.4000 (mixed/partial migration)"
when: dev2_mixed_state | bool
delegate_to: localhost
ansible.builtin.debug: