diff --git a/files/ansible-playbooks/sot-updater.yml b/files/ansible-playbooks/sot-updater.yml index b47d7f1..66353dd 100644 --- a/files/ansible-playbooks/sot-updater.yml +++ b/files/ansible-playbooks/sot-updater.yml @@ -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