diff --git a/linux/open_vm_tools/uninstall_ovt.yml b/linux/open_vm_tools/uninstall_ovt.yml index 5ab720f80..fb706aec0 100644 --- a/linux/open_vm_tools/uninstall_ovt.yml +++ b/linux/open_vm_tools/uninstall_ovt.yml @@ -7,7 +7,7 @@ # # Uninstall open-vm-tools packages - name: "Uninstall packages {{ ovt_packages }}" - ansible.builtin.command: "{{ package_uninstall_cmd }} {{' '.join(ovt_packages) }}" + ansible.builtin.command: "{{ package_uninstall_cmd }} {{ ' '.join(ovt_packages) }}" register: ovt_uninstall_result ignore_errors: true delegate_to: "{{ vm_guest_ip }}" @@ -24,7 +24,7 @@ - ovt_uninstall_result.stdout - ovt_uninstall_result.rc is defined - ovt_uninstall_result.rc | int == 0 - fail_msg: "Failed to uninstall open-vm-tools by executing command: {{ ' '.join(ovt_uninstall_result.cmd) }}" + fail_msg: "Failed to uninstall open-vm-tools by executing command: {{ package_uninstall_cmd }} {{ ' '.join(ovt_packages) }}" - name: "Reboot VM to make changes take effect" include_tasks: ../utils/reboot.yml diff --git a/linux/setup/reconfig_existing_guest.yml b/linux/setup/reconfig_existing_guest.yml index 9aba4d1b2..3905ae189 100644 --- a/linux/setup/reconfig_existing_guest.yml +++ b/linux/setup/reconfig_existing_guest.yml @@ -40,8 +40,8 @@ package_list: ["gawk", "python3-rpm", "tar"] package_state: "present" -- name: "Reconfigure SLED" - when: guest_os_ansible_distribution == "SLED" +- name: "Reconfigure {{ guest_os_ansible_distribution }}" + when: guest_os_family == "Suse" block: - name: "Check 'PackageKit' service state" include_tasks: ../utils/get_service_info.yml