Closed souchan2000 closed 2 weeks ago
Values in the vars:
section cannot be used in the runners:
section of the same runbook.
Variables can be used if they are in the runners:
section of the runbook loaded by the include runner.
Hi @souchan2000.
From v0.113.1, runners can be defined in the middle of a step.
https://github.com/k1LoW/runn?tab=readme-ov-file#runner-runner-define-runner-in-the-middle-of-steps
Sorry for the late reply, I'll try using the information you suggested. Thank you.
I've run into an issue when trying to use
vars
in theendpoint
ofrunners
in the following script: env/local.jsonenv/production.json
example.yml
The results obtained from execution:
Specifically, using
'{{ vars.env.endpoint }}'
directly in theendpoint
ofrunners.service
doesn't seem to work as expected.The expected behaviour is that
vars.env.endpoint
is correctly expanded inservice.endpoint
and it becomes possible to set the endpoint dynamically based onenv
.If there is a solution to this problem, or an alternative way to dynamically set the
endpoint
usingvars
, I would appreciate your advice.