diff --git a/roles/os_must_gather/tasks/main.yml b/roles/os_must_gather/tasks/main.yml index 7df2086910..a409961162 100644 --- a/roles/os_must_gather/tasks/main.yml +++ b/roles/os_must_gather/tasks/main.yml @@ -65,6 +65,7 @@ cifmw.general.ci_script: output_dir: "{{ cifmw_os_must_gather_output_dir }}/artifacts" script: >- + timeout {{ (cifmw_os_must_gather_timeout | community.general.to_seconds) + 120 }} oc adm must-gather --image {{ cifmw_os_must_gather_image }} --timeout {{ cifmw_os_must_gather_timeout }} --host-network={{ cifmw_os_must_gather_host_network }} @@ -101,7 +102,11 @@ KUBECONFIG: "{{ cifmw_openshift_kubeconfig | default(cifmw_os_must_gather_kubeconfig) }}" PATH: "{{ cifmw_path }}" ansible.builtin.command: - cmd: oc adm must-gather --dest-dir {{ ansible_user_dir }}/ci-framework-data/must-gather + cmd: >- + timeout {{ (cifmw_os_must_gather_timeout | community.general.to_seconds) + 120 }} + oc adm must-gather + --dest-dir {{ ansible_user_dir }}/ci-framework-data/must-gather + --timeout {{ cifmw_os_must_gather_timeout }} always: - name: Create oc_inspect log directory ansible.builtin.file: