Supply non-constant arguments to dynamic variable
Hello I want to use charm/gum with task.
I.e. I want to download binary if it not exist and use it with custom arguments.
Something like this, but that piece is not valid config. What should I do?
10 Replies
Hello !
Something like that should work :

Oh, so all I was need is to make variable static...
Yes 🙂
cmd in cmds are executed after being remplaced by the template engine
Btw, can we also ignore error code printing from task?
I know we had issue for reworking --silent flag, but maybe there are workarounds?

You can use
ignore_error: true
For example:

The first one is with silent: true
The second with silent: false
But it will still print the exit status, right?
Yes
AFAIK, there is nothing to hide commands' output in Task
You may need play with redirect stdout and stderr