| | |
| | | until: >- |
| | | r_running_quay_pod.resources[0].status.containerStatuses[0].ready | bool |
| | | ignore_errors: true |
| | | retries: 20 |
| | | retries: 15 |
| | | delay: 5 |
| | | |
| | | - name: Delete crashing Pod to pick up SCC |
| | | when: |
| | | - not r_running_quay_pod.resources[0].status.containerStatuses[0].ready | bool |
| | | - r_running_quay_pod.resources[0].status.containerStatuses[0].state.waiting.reason is match("CrashLoopBackOff") |
| | | or r_running_quay_pod.resources[0].status.containerStatuses[0].state.waiting.reason is match("Error") |
| | | shell: "oc delete pod {{ r_running_quay_pod.resources[0].metadata.name }} -n {{ _quay_project }}" |
| | | |
| | | # - name: Restart crashing Pod to pick up SCC |
| | | # when: |
| | |
| | | # kind: Pod |
| | | # name: "{{ r_running_quay_pod.resources[0].metadata.name }}" |
| | | # namespace: "{{ _quay_project }}" |
| | | |
| | | - name: Delete Quay Deployment to pick up SCC |
| | | when: |
| | | - not r_running_quay_pod.resources[0].status.containerStatuses[0].ready | bool |
| | | - r_running_quay_pod.resources[0].status.containerStatuses[0].state.waiting.reason is match("CrashLoopBackOff") |
| | | or r_running_quay_pod.resources[0].status.containerStatuses[0].state.waiting.reason is match("Error") |
| | | k8s: |
| | | state: absent |
| | | api_version: extensions/v1beta1 |
| | | kind: Deployment |
| | | name: "{{ _quay_name }}-quay" |
| | | namespace: "{{ _quay_project }}" |
| | | |
| | | - name: Print Student as user.info |
| | | debug: |