Welcome guys,
I have a little problem with set template to split variable, that’s the part of template:
{{#vars.Configure_chronyd.ntpservers}}
{{#each vars.Configure_chronyd.ntpservers}}
server {{this}} iburst
{{/each}}
{{/vars.Configure_chronyd.ntpservers}}
Need split variable ‘ntpservers’ from ntpserver1|ntpserver2, to 2 different lines in config, its mean, i want get:
server ntpserver1 iburst
server ntpserver2 iburst
Tried make simple iteration, split and cant reach the result.