From f19e65a0f957931e77ddfcd7564bcba364a56a0b Mon Sep 17 00:00:00 2001 From: acichon Date: Thu, 11 Apr 2024 19:28:13 +0200 Subject: [PATCH] ensure that edges from pnp bootstrap generation will use hyphens --- roles/azure_edges/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/azure_edges/tasks/main.yml b/roles/azure_edges/tasks/main.yml index 80e2201..6dd9203 100644 --- a/roles/azure_edges/tasks/main.yml +++ b/roles/azure_edges/tasks/main.yml @@ -48,7 +48,7 @@ - name: Create ec2 instance - cEdge (C8000V) ansible.builtin.include_tasks: azure_cedge_vm.yml vars: - hostname: "{{ instance_item.hostname }}" + hostname: "{{ instance_item.hostname | replace('_', '-') }}" uuid: "{{ instance_item.uuid }}" otp: "{{ instance_item.otp }}" vbond: "{{ instance_item.vbond }}"