Commit 22c8ca2
fix(ansible): use set_fact to override slm_colocated_frontend — include_vars beats task vars
include_vars has Ansible precedence 18 while task-level vars: has 17.
Loading slm_manager/defaults/main.yml (which has slm_colocated_frontend: false)
via include_vars was silently overriding vars: slm_colocated_frontend: true
on the template task, so the template always rendered in non-co-located mode.
Replace vars: on the template task with an explicit set_fact (precedence 19)
that runs after include_vars, ensuring the template sees true.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f0ab7a7 commit 22c8ca2
File tree
1 file changed
+8
-2
lines changed- autobot-slm-backend/ansible/playbooks
1 file changed
+8
-2
lines changedLines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
352 | 360 | | |
353 | 361 | | |
354 | 362 | | |
355 | 363 | | |
356 | 364 | | |
357 | 365 | | |
358 | | - | |
359 | | - | |
360 | 366 | | |
361 | 367 | | |
362 | 368 | | |
| |||
0 commit comments