From bac2bbd226a0dcd65cbc9f97d5e32b3c06394597 Mon Sep 17 00:00:00 2001 From: pavel Date: Fri, 28 Nov 2025 14:12:24 +0200 Subject: [PATCH] 1412 --- files/ansible-playbooks/sot-updater.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/files/ansible-playbooks/sot-updater.yml b/files/ansible-playbooks/sot-updater.yml index 2720718..7fbdad1 100644 --- a/files/ansible-playbooks/sot-updater.yml +++ b/files/ansible-playbooks/sot-updater.yml @@ -210,7 +210,10 @@ - name: "NB preflight | Publish delayed requeue (300s (10s)) if needed" when: - nb_script.stat.exists - - (cloud_bad | default(false)) or (nb_ip_changed | default(false)) + - (nb_ip_changed | default(false)) or ( + (cloud_bad | default(false)) and + (cloud_error_type | default('none')) != 'cloud_http_500' + ) - (requeue_attempt | int) < 3 delegate_to: localhost uri: @@ -253,9 +256,16 @@ - name: "NB preflight | Stop host after requeue" when: - nb_script.stat.exists - - ((cloud_bad | default(false)) or (nb_ip_changed | default(false))) + - ( + (nb_ip_changed | default(false)) or + ( + (cloud_bad | default(false)) and + (cloud_error_type | default('none')) != 'cloud_http_500' + ) + ) meta: end_host + - name: "NB preflight | Pause 1s if OK" when: - nb_script.stat.exists