diff --git a/playbooks/template_cloudinit_config.yml b/playbooks/template_cloudinit_config.yml index 3633340..0fd216a 100644 --- a/playbooks/template_cloudinit_config.yml +++ b/playbooks/template_cloudinit_config.yml @@ -62,7 +62,7 @@ vsmart_instances: # Edge devices # ################################ -cedge_instances: +edge_instances: - hostname: terraformcedge1 otp: XXX site_id: 1002 diff --git a/roles/template_cloudinit/tasks/main.yml b/roles/template_cloudinit/tasks/main.yml index 7ceb1b4..4a4fed3 100644 --- a/roles/template_cloudinit/tasks/main.yml +++ b/roles/template_cloudinit/tasks/main.yml @@ -102,10 +102,10 @@ vbond: "{{ instance_item.vbond }}" template_path: "./userdata_cedge.j2" generated_cloudinit_path: "{{ cloudinit_path | default('') }}" - loop: "{{ cedge_instances }}" + loop: "{{ edge_instances }}" loop_control: loop_var: instance_item - when: cedge_instances is defined + when: edge_instances is defined - name: "Display location of generated files" ansible.builtin.debug: