mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 02:54:26 +00:00
2f533eb279read TOR_ONION_SSH_ENABLED straight out of the lookup's variables, but group vars reach a lookup unrendered, so the flag arrived as its own template text and boolean() refused it. The torrc render aborted, and with it every tor row: 14 jobs across both runs on095ea5e882failed with the same line, Baserow#0 in compose and Nextcloud#1 in swarm among them. Quoted from job 104843161609: The lookup plugin 'tor_extra_ports' failed: The value '{{ lookup('config', application_id, 'services.tor.forwards.ssh') | bool }}' is not a valid boolean. Reproduced locally: boolean() on that literal raises with the identical message. tor_egress_clients.py:43 in this same role has resolved its own references through templar.template(trust_as_template(...)) sincebf32f57b85. _flag now does the same and names the variable when the value is still not a boolean afterwards. The unit tests passed real booleans, which is why they stayed green through seven gate runs; the new case sends template text through a templar, the shape production delivers. No lint or unit test could have caught this, because it only appears once ansible hands the variable over unrendered. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>