diff --git a/tests/integration/targets/vmware_ops_deploy_ovf_test/tasks/export_vm_as_ovf_content_library.yml b/tests/integration/targets/vmware_ops_deploy_ovf_test/tasks/export_vm_as_ovf_content_library.yml index 89945067..e584672a 100644 --- a/tests/integration/targets/vmware_ops_deploy_ovf_test/tasks/export_vm_as_ovf_content_library.yml +++ b/tests/integration/targets/vmware_ops_deploy_ovf_test/tasks/export_vm_as_ovf_content_library.yml @@ -7,6 +7,8 @@ name: "{{ test_vm_name }}" validate_certs: false register: vm_info + retries: 3 + delay: 10 - name: Create Content Library community.vmware.vmware_content_library_manager: diff --git a/tests/integration/targets/vmware_ops_deploy_ovf_test/tasks/test_deploy_ovf.yml b/tests/integration/targets/vmware_ops_deploy_ovf_test/tasks/test_deploy_ovf.yml index 90dc46cc..69446ada 100644 --- a/tests/integration/targets/vmware_ops_deploy_ovf_test/tasks/test_deploy_ovf.yml +++ b/tests/integration/targets/vmware_ops_deploy_ovf_test/tasks/test_deploy_ovf.yml @@ -7,6 +7,8 @@ name: "{{ item }}" validate_certs: false register: guest_info + retries: 3 + delay: 10 - name: Check Properties Of VM {{ item }} ansible.builtin.assert: diff --git a/tests/integration/targets/vmware_ops_provision_virtual_esxi_test/tasks/cleanup_esxi.yml b/tests/integration/targets/vmware_ops_provision_virtual_esxi_test/tasks/cleanup_esxi.yml index ccc093bd..f985d41b 100644 --- a/tests/integration/targets/vmware_ops_provision_virtual_esxi_test/tasks/cleanup_esxi.yml +++ b/tests/integration/targets/vmware_ops_provision_virtual_esxi_test/tasks/cleanup_esxi.yml @@ -45,7 +45,8 @@ validate_certs: no name: "{{ provision_virtual_esxi_vms[0].name }}" register: vm_info - ignore_errors: true + retries: 3 + delay: 10 - name: Fail if VM is still present in vCenter fail: diff --git a/tests/integration/targets/vmware_ops_provision_vm_test/tasks/cleanup_vms.yml b/tests/integration/targets/vmware_ops_provision_vm_test/tasks/cleanup_vms.yml index 645de66c..63a4a5d5 100644 --- a/tests/integration/targets/vmware_ops_provision_vm_test/tasks/cleanup_vms.yml +++ b/tests/integration/targets/vmware_ops_provision_vm_test/tasks/cleanup_vms.yml @@ -15,7 +15,8 @@ validate_certs: "{{ provision_vm_validate_certs }}" name: "{{ item.provision_vm_name }}" register: vm_info - ignore_errors: true + retries: 3 + delay: 10 - name: "Fail the task if the following VM exists: {{ item.provision_vm_name }}" ansible.builtin.fail: diff --git a/tests/integration/targets/vmware_ops_provision_vm_test/tasks/get_vm_info.yml b/tests/integration/targets/vmware_ops_provision_vm_test/tasks/get_vm_info.yml index ebb42bd8..ab447f3b 100644 --- a/tests/integration/targets/vmware_ops_provision_vm_test/tasks/get_vm_info.yml +++ b/tests/integration/targets/vmware_ops_provision_vm_test/tasks/get_vm_info.yml @@ -7,6 +7,8 @@ validate_certs: "{{ provision_vm_validate_certs }}" name: "{{ vm_name }}" register: vm_info + retries: 3 + delay: 10 - name: Fail the task if the VM doesn't exist ansible.builtin.fail: diff --git a/tests/integration/targets/vmware_ops_provision_vm_test/tasks/update_name_with_validation.yml b/tests/integration/targets/vmware_ops_provision_vm_test/tasks/update_name_with_validation.yml index 3c051947..a0b1596b 100644 --- a/tests/integration/targets/vmware_ops_provision_vm_test/tasks/update_name_with_validation.yml +++ b/tests/integration/targets/vmware_ops_provision_vm_test/tasks/update_name_with_validation.yml @@ -15,6 +15,8 @@ validate_certs: "{{ provision_vm_validate_certs }}" moid: "{{ vm_moid }}" register: vm_info_updated_name + retries: 3 + delay: 10 - name: Print vm_info_updated_name for {{ vm_moid }} ansible.builtin.debug: