1059
This commit is contained in:
@@ -337,10 +337,14 @@
|
|||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
# Dev2: firmux-only selection (prefer a line that has "rev NNNN")
|
# 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
|
delegate_to: localhost
|
||||||
set_fact:
|
set_fact:
|
||||||
_firmux_lines: "{{ (dev2_firmux.stdout | default('') | regex_replace('\r','')) | split('\n') | map('trim') | list }}"
|
_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: >-
|
indoor_fw_raw: >-
|
||||||
{{
|
{{
|
||||||
(
|
(
|
||||||
@@ -363,6 +367,8 @@
|
|||||||
debug:
|
debug:
|
||||||
msg: "Chosen indoor_fw_raw='{{ indoor_fw_raw }}'"
|
msg: "Chosen indoor_fw_raw='{{ indoor_fw_raw }}'"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Final value for NetBox: keep exactly what firmux says (no '-r' conversion)
|
# Final value for NetBox: keep exactly what firmux says (no '-r' conversion)
|
||||||
- name: Dev2 | Final indoor fw string (no transformation)
|
- name: Dev2 | Final indoor fw string (no transformation)
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|||||||
Reference in New Issue
Block a user