上QQ阅读APP看书,第一时间看更新
Jinja templating examples
A mark of a good templating language is the ability to allow control of the content without appearing to be a fully-fledged programming language. Jinja2 excels in that by providing us with the ability to do conditional output, such as iterations using loops, among other things.
Let's look at some basic examples (obviously Ansible playbook-related) to see what that looks like.