This commit is contained in:
2026-01-20 06:19:47 +02:00
parent eb4a0e69b7
commit 663637795a
2 changed files with 46 additions and 0 deletions

View File

@@ -5,6 +5,11 @@
gather_facts: no
vars:
# Wrapper mode:
# false (default): standalone behavior (may requeue + end_host)
# true: composable behavior for sot-updater-wrapper.yml (no requeue, no end_host)
sot_wrapper_mode: false
pathprefix: "PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH; "
dev1_user: "root"
dev1_pass: "wavewave"
@@ -209,6 +214,7 @@
# --- Requeue control: only 3 attempts, 300s apart ---
- name: "NB preflight | Publish delayed requeue (300s (10s)) if needed"
when:
- not (sot_wrapper_mode | default(false))
- nb_script.stat.exists
- (nb_ip_changed | default(false)) or (
(cloud_bad | default(false)) and
@@ -243,6 +249,7 @@
- name: "NB preflight | Log requeue publish response"
when:
- not (sot_wrapper_mode | default(false))
- nb_script.stat.exists
- ((cloud_bad | default(false)) or (nb_ip_changed | default(false)))
- (requeue_attempt | int) < 3
@@ -255,6 +262,7 @@
- name: "NB preflight | Stop host after requeue"
when:
- not (sot_wrapper_mode | default(false))
- nb_script.stat.exists
- (
(nb_ip_changed | default(false)) or
@@ -275,4 +283,5 @@
tasks:
- name: "IP-only | Stop after NetBox sync (no device scan)"
when: not (sot_wrapper_mode | default(false))
meta: end_host