This commit is contained in:
2025-10-24 11:56:51 +03:00
parent 225f405ab7
commit c7a9e7ebe0

View File

@@ -337,10 +337,14 @@
ignore_errors: true
# Dev2: firmux-only selection (prefer a line that has "rev NNNN")
- name: Dev2 | Select line from firmux (prefer '... rev NNNN')
- name: Dev2 | Prepare firmux lines list
delegate_to: localhost
set_fact:
_firmux_lines: "{{ (dev2_firmux.stdout | default('') | regex_replace('\r','')) | split('\n') | map('trim') | list }}"
- name: Dev2 | Select line from firmux (prefer '... rev NNNN')
delegate_to: localhost
set_fact:
indoor_fw_raw: >-
{{
(
@@ -363,6 +367,8 @@
debug:
msg: "Chosen indoor_fw_raw='{{ indoor_fw_raw }}'"
# Final value for NetBox: keep exactly what firmux says (no '-r' conversion)
- name: Dev2 | Final indoor fw string (no transformation)
delegate_to: localhost