Skip to content

Commit

Permalink
update datacenter var name to match other roles
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemorency authored and bardielle committed Oct 9, 2024
1 parent 740d2e1 commit 633094a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion roles/export_vm_as_ovf/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
quiet: true
fail_msg: Variable must be set when using this role.

- name: Map Variable Aliases to Documented Names
ansible.builtin.set_fact:
export_vm_as_ovf_vm_datacenter: "{{ export_vm_as_ovf_vm_datacenter_name }}"
when: export_vm_as_ovf_vm_datacenter_name is defined

- name: Export VM As OVF
community.vmware.vmware_export_ovf:
hostname: "{{ export_vm_as_ovf_hostname }}"
Expand All @@ -23,7 +28,7 @@
proxy_host: "{{ export_vm_as_ovf_proxy_host | default(omit) }}"
proxy_port: "{{ export_vm_as_ovf_proxy_port | default(omit) }}"

datacenter: "{{ export_vm_as_ovf_vm_datacenter_name | default(omit) }}"
datacenter: "{{ export_vm_as_ovf_vm_datacenter | default(omit) }}"
folder: "{{ export_vm_as_ovf_vm_folder | default(omit) }}"
name: "{{ export_vm_as_ovf_vm_name | default(omit) }}"
uuid: "{{ export_vm_as_ovf_vm_uuid | default(omit) }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
name: "{{ export_vm_as_ovf_vm_name }}"
state: poweredoff
folder: "/{{ vcenter_datacenter }}/vm/e2e-qe"
datacenter: "{{ export_vm_as_ovf_datacenter_name }}"
datacenter: "{{ export_vm_as_ovf_datacenter }}"
disk:
- size_gb: 5
type: thick
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export_vm_as_ovf_hostname: "{{ vcenter_hostname }}"
export_vm_as_ovf_username: "{{ vcenter_username }}"
export_vm_as_ovf_password: "{{ vcenter_password }}"
export_vm_as_ovf_validate_certs: false
export_vm_as_ovf_datacenter_name: "{{ vcenter_datacenter }}"
export_vm_as_ovf_datacenter: "{{ vcenter_datacenter }}"

export_vm_as_ovf_export_dir: /tmp/export_vm_as_ovf
export_vm_as_ovf_vm_name: "{{ tiny_prefix }}-export-vm-as-ovf-test"

0 comments on commit 633094a

Please sign in to comment.