官术网_书友最值得收藏!

Templates with Jinja2

Ansible uses Jinja2 templating to enable dynamic expressions and access to variables. Jinja2 variables and expressions within playbooks and tasks allow us to create roles that are very flexible. By passing variables to a role written this way, we can have the same role perform different tasks or configurations. Using a templating language, such as Jinja2, we are able to write playbooks that are succinct and easier to read.

By ensuring that all the templating takes place on the Ansible controller, Jinja2 is not required on the target machine. Only the required data is copied over, which reduces the data that needs to be transferred. As we know, less data transfer usually results in faster execution and feedback. 

主站蜘蛛池模板: 科技| 平江县| 温泉县| 乌苏市| 和政县| 潮州市| 遂川县| 吴忠市| 湘西| 绥德县| 雷山县| 宜城市| 二连浩特市| 井陉县| 辉县市| 巴彦县| 太康县| 永胜县| 台南县| 呼玛县| 木兰县| 句容市| 藁城市| 社会| 成安县| 乌拉特中旗| 旌德县| 新蔡县| 灌阳县| 冕宁县| 水富县| 德钦县| 项城市| 永春县| 连城县| 嵊泗县| 铜山县| 四会市| 伊川县| 蒙阴县| 合肥市|