|
|
|
|
@ -259,6 +259,22 @@
|
|
|
|
|
until: sma_portal_avail.status in [200]
|
|
|
|
|
|
|
|
|
|
rescue:
|
|
|
|
|
- name: "Check SMA-portal dependency << iam-instance >>is reachable"
|
|
|
|
|
become: no
|
|
|
|
|
uri:
|
|
|
|
|
url: "https://{{ stage }}-iam-01.{{ domain }}/api/v1/roles"
|
|
|
|
|
method: GET
|
|
|
|
|
status_code: [403]
|
|
|
|
|
register: iam_avail
|
|
|
|
|
delay: 10
|
|
|
|
|
retries: 10
|
|
|
|
|
no_log: true
|
|
|
|
|
until: iam.status in [403]
|
|
|
|
|
ignore_errors: yes # noqa ignore-errors
|
|
|
|
|
# patchday continues ion case of failed request towards iam service;
|
|
|
|
|
# iam service is hard dependency for SMA-portal-instance but not for
|
|
|
|
|
# patchday itself - it;s just a work around
|
|
|
|
|
|
|
|
|
|
- name: "Smardigo Patchday: SMA-portal not reachable - shutdown services"
|
|
|
|
|
community.docker.docker_compose:
|
|
|
|
|
project_src: '{{ item.path | dirname }}'
|
|
|
|
|
|