This commit is contained in:
2025-10-25 04:46:49 +03:00
parent 419834e4ca
commit e1258a554f

View File

@@ -217,6 +217,23 @@
| trim
}}
- name: Dev1 | Normalize banner (simple literal transformation)
delegate_to: localhost
set_fact:
dev1_fw_clean: >-
{{
(
dev1_banner.stdout | default('') | trim
# cut off anything after the pipe
| regex_replace('\\s*\\|.*$', '')
# replace first space before 'rev' with a dash
| regex_replace('\\s+rev\\s+', '-r')
)
| default('', true)
| trim
}}
- name: Publish Dev1 fw_version
delegate_to: localhost
uri: