Skip to content

Commit

Permalink
workaround for hyphens
Browse files Browse the repository at this point in the history
  • Loading branch information
cicharka committed Apr 5, 2024
1 parent ad279eb commit 2f587cc
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playbooks/azure_sdwan_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ az_resources_prefix: "{{ organization_name }}"


# example configuration is:
# aws_allowed_subnets:
# az_allowed_subnets:
# - 15.15.0.0/16
# - 10.10.0.0/16
aws_allowed_subnets: null
az_allowed_subnets: null


###############################
Expand Down
4 changes: 4 additions & 0 deletions roles/azure_controllers/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
loop_var: instance_item
label: "{{ instance_item.hostname }}"

- name: "Replace underscores with hyphens in the az_resources_prefix string"
ansible.builtin.set_fact:
az_resources_prefix: "{{ az_resources_prefix | replace('_', '-') }}"

- name: "Prepare directory for results, path: {{ results_dir }}"
ansible.builtin.file:
path: "{{ results_dir }}"
Expand Down
4 changes: 4 additions & 0 deletions roles/azure_edges/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
tasks_from: aws_required_variables
defaults_from: az_required_vars_edges.yml

- name: "Replace underscores with hyphens in the az_resources_prefix string"
ansible.builtin.set_fact:
az_resources_prefix: "{{ az_resources_prefix | replace('_', '-') }}"

- name: "Prepare directory for results, path: {{ results_dir }}"
ansible.builtin.file:
path: "{{ results_dir }}"
Expand Down
4 changes: 4 additions & 0 deletions roles/azure_network_infrastructure/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
tasks_from: required_variables
defaults_from: az_required_vars_network_infrastructure.yml

- name: "Replace underscores with hyphens in the az_resources_prefix string"
ansible.builtin.set_fact:
az_resources_prefix: "{{ az_resources_prefix | replace('_', '-') }}"

- name: "Prepare directory for results, path: {{ results_dir }}"
ansible.builtin.file:
path: "{{ results_dir }}"
Expand Down
4 changes: 4 additions & 0 deletions roles/azure_teardown/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
name: common
tasks_from: az_user_session_probe

- name: "Replace underscores with hyphens in the az_resources_prefix string"
ansible.builtin.set_fact:
az_resources_prefix: "{{ az_resources_prefix | replace('_', '-') }}"

- name: Remove Azure Resource Group and wait for teardown completion
ansible.builtin.include_tasks: az_teardown_rg.yml

0 comments on commit 2f587cc

Please sign in to comment.