Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Zhang <qiz@vmware.com>
  • Loading branch information
keirazhang committed Aug 14, 2023
1 parent 63c0401 commit d05d68f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions linux/deploy_vm/collect_vm_logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@
# cloud image, VMware Photon OS OVA or Amazon Linux OVA.
#
- name: "Collect VM deployement logs"
when:
- vm_exists is defined
- vm_exists
block:
- name: "Get VM's power state"
include_tasks: ../../common/vm_get_power_state.yml

- name: "Collect VM's guest info and cloud-init logs"
when:
- vm_power_state_get is defined
- vm_power_state_get == "poweredOn"
block:
- name: "Get VMware Tools status"
include_tasks: ../../common/vm_get_vmtools_status.yml
Expand All @@ -32,9 +38,3 @@
unattend_install_conf is match('Ubuntu/Desktop/Subiquity'))) or
(ova_guest_os_type is defined and
ova_guest_os_type in ['photon', 'ubuntu', 'amazon']))
when:
- vm_power_state_get is defined
- vm_power_state_get == "poweredOn"
when:
- vm_exists is defined
- vm_exists
1 change: 0 additions & 1 deletion linux/deploy_vm/deploy_vm_from_iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@
- name: "Remove serial port"
include_tasks: ../../common/vm_remove_serial_port.yml


- name: "OS auto install is completed. Power on VM now"
include_tasks: ../../common/vm_set_power_state.yml
vars:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Put SSH public key into ignition config file
- name: "Generation Ignition config file {{ ignition_config_file }}"
ansible.builtin.template:
src: ignition_config.j2
src: "templates/ignition_config.j2"
dest: "{{ ignition_config_file }}"
mode: "0644"
register: generate_ignition
Expand Down
2 changes: 1 addition & 1 deletion linux/deploy_vm/reconfigure_vm_with_ignition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Use Ignition to configure guest OS username, password, SSH authorized keys, etc
#
- name: "Generate Ignition config file"
include_tasks: flatcar/generate_ignition_config.yml
include_tasks: generate_ignition_config.yml

- name: "Define Ignition configs in VM guestinfo"
include_tasks: ../../common/vm_set_extra_config.yml
Expand Down
File renamed without changes.

0 comments on commit d05d68f

Please sign in to comment.