Skip to content
Snippets Groups Projects
Commit 69d4f9dc authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

Refactor regex string

Regex that is used in calculation of short system names.
It is per environment, so the var that is needed for the regex moved to
the group_vars inventory.
E.g. in DEV env it will be ".dev.geant.private", in UAT and PROD -
different.
parent 7dd9ed44
No related branches found
No related tags found
1 merge request!146Refactor regex string
Pipeline #87307 passed
...@@ -40,8 +40,8 @@ ...@@ -40,8 +40,8 @@
- name: Set short router names for local and remote sides - name: Set short router names for local and remote sides
ansible.builtin.set_fact: ansible.builtin.set_fact:
local_side_short_name: '{{ local_side.iptrunk_side_node.router_fqdn | replace(postfix_to_remove, "") }}' local_side_short_name: '{{ local_side.iptrunk_side_node.router_fqdn | replace(domain_name_regex, "") }}'
remote_side_short_name: '{{ remote_side.iptrunk_side_node.router_fqdn | replace(postfix_to_remove, "") }}' remote_side_short_name: '{{ remote_side.iptrunk_side_node.router_fqdn | replace(domain_name_regex, "") }}'
- name: Set Local and Remote side IPv4 addresses nodeA - name: Set Local and Remote side IPv4 addresses nodeA
ansible.builtin.set_fact: ansible.builtin.set_fact:
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
dry_run: "True" dry_run: "True"
postfix_to_remove: ".dev.geant.private"
nokia_twamp_server: nokia_twamp_server:
max_conn: 1 max_conn: 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment