diff --git a/roles/os_must_gather/tasks/main.yml b/roles/os_must_gather/tasks/main.yml index 7b578d5fab..5b76088446 100644 --- a/roles/os_must_gather/tasks/main.yml +++ b/roles/os_must_gather/tasks/main.yml @@ -49,6 +49,14 @@ path: "{{ cifmw_openshift_kubeconfig | default(cifmw_os_must_gather_kubeconfig) }}" register: _kubeconfig_stat +- name: Accept certificates before must gather + ansible.builtin.shell: | + oc adm certificate approve $(oc get csr --no-headers | awk '/Pending/ {print $1}') + +- name: Sleep a while + ansible.builtin.pause: + seconds: 30 + - name: Running openstack-must-gather tool when: - oc_installed is defined