Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ansible-vsphere-gos-validation] Remove cdrom ISO before running cloud-init GOSC test cases for Ubuntu OVA #478

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions linux/deploy_vm/reconfigure_vm_with_cloudinit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,20 @@
remove_serial_port.changed is undefined or
not remove_serial_port.changed

# The workaround "Remove CDROM" for issue: https://bugs.launchpad.net/cloud-init/+bug/1992509
- name: "Remove all CDROM"
include_tasks: ../../common/vm_configure_cdrom.yml
vars:
cdrom_type: client
cdrom_controller_type: "{{ vm_cdrom.controller_label.split()[0] | lower }}"
cdrom_controller_num: "{{ vm_cdrom.bus_num }}"
cdrom_unit_num: "{{ vm_cdrom.unit_num }}"
cdrom_state: absent
with_items: "{{ vm_existing_cdrom_list }}"
loop_control:
loop_var: vm_cdrom
when: vm_existing_cdrom_list | length > 0

- name: "Power on VM"
include_tasks: ../../common/vm_set_power_state.yml
vars:
Expand Down