Hello everyone,
I would like to take in parameter a tags list (for example), then create a cron with the right command line.
How to iterate over the list and construct my command for my cron line please ?
For example, having :
tags:
- { key: Name, value: test }
- { key: env, value: prod }
And generate something like :
- cron: name="check dirs" minute="0" hour="5,2" job="simplec2snap.py {{ tags_loop }}" => job= "simplec2snap.py -t Name test -t env prod"
Thanks for giving me a clue ;-)
Cheers