This commit is contained in:
2025-10-24 12:05:26 +03:00
parent c1f533bf83
commit 7df9a96965

View File

@@ -126,6 +126,9 @@
- "Device: {{ inventory_hostname }}"
- "Phase switch: Dev1 done → Dev2 (tunnel, auth, read indoor_fwver)"
- name: Refresh ARP 1 on DEV1s LAN (send unsolicited ARP from temporary IP)
ansible.builtin.raw: arping -U -I eth0 192.168.1.11 -c 3
# ───────────────────────── TUNNEL PREP ─────────────────────────
- name: Add temporary IP on DEV1 (tolerate 'File exists')
ansible.builtin.raw: >
@@ -199,6 +202,9 @@
- "_ctrl_dir={{ _ctrl_dir }}"
- "_ctrl_sock={{ _ctrl_sock }}"
- name: Refresh ARP 1 on DEV1s LAN (send unsolicited ARP from temporary IP)
ansible.builtin.raw: arping -U -I eth0 192.168.1.11 -c 3
- name: Start SSH ControlMaster and forward 127.0.0.1:local → DEV2:22 via DEV1
delegate_to: localhost
ansible.builtin.shell: |
@@ -249,6 +255,9 @@
- "Device: {{ inventory_hostname }}"
- "Phase: Dev2 (auth selection, firmux/banner read)"
- name: Refresh ARP 1 on DEV1s LAN (send unsolicited ARP from temporary IP)
ansible.builtin.raw: arping -U -I eth0 192.168.1.11 -c 3
# ───────────────────────── DEV2 AUTH PICK (as per update-indoor) ─────────────────────────
- name: Try DEV2 login with 'basicpass' (root)
delegate_to: localhost
@@ -317,6 +326,9 @@
debug:
msg: "DEV2 passfile used: {{ dev2_passfile_used }}"
- name: Refresh ARP 1 on DEV1s LAN (send unsolicited ARP from temporary IP)
ansible.builtin.raw: arping -U -I eth0 192.168.1.11 -c 3
# ───────────────────────── DEV2 READS ─────────────────────────
- name: Dev2 | Read /usr/lib/release/firmux (if present)
when: dev2_passfile_used != "NONE"