Escape characters recognized as a variable in template stanza

Hello, is there a way to import a local file and mount it into a container and escape text that looks like variables for Nomad?

I have a template stanza that has some blabla {{ $value }} blabla sections and Nomad wants to convert it but it should not, so the job fails.

According to this SO post you can try

blabla {{"{{"}} $value {{"}}"}} blabla

OR

blabla {{`{{ $value }}`}} blabla
2 Likes

That’s the working syntax :+1:
Thank you @foozmeat