0446
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user