1412
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user