mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
compose.yml first renders before the role writes its config and secret
files, so the content-hash names from the compose_volumes lookup describe
the previous deploy and the next unchanged deploy recreates the stack once
more. A flush handler now recomputes only those <entity>_<key>_<sha8> names
from the files with the lookup's own naming function, on the controller like
the render, so render and flush always agree. Re-rendering the template in
the handler would run in the scope of the include that loaded it and lose
role switches set only on the notifying task.
Fixes #1212 (based on 6b2589a632, PR #1231)
Co-authored-by: Prageeth Panicker <prage.pani@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>