diff --git a/roles/azure_edges/tasks/azure_cedge_vm.yml b/roles/azure_edges/tasks/azure_cedge_vm.yml index 56ef52b..491af88 100644 --- a/roles/azure_edges/tasks/azure_cedge_vm.yml +++ b/roles/azure_edges/tasks/azure_cedge_vm.yml @@ -2,6 +2,10 @@ # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) --- +- name: "Replace underscores with hyphens in the az_resources_prefix string" + ansible.builtin.set_fact: + az_resources_prefix: "{{ az_resources_prefix | replace('_', '-') }}" + hostname: "{{ hostname | replace('_', '-') }}" - name: "Create public IP addresses for machine: {{ hostname }}" azure.azcollection.azure_rm_publicipaddress: