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

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. 

主站蜘蛛池模板: 台山市| 鱼台县| 河西区| 新巴尔虎左旗| 玛多县| 龙海市| 马尔康县| 白山市| 新昌县| 大关县| 博乐市| 泽州县| 沧源| 井冈山市| 修文县| 呼伦贝尔市| 肇庆市| 沙田区| 阳曲县| 嘉善县| 区。| 元朗区| 八宿县| 烟台市| 信阳市| 济宁市| 安新县| 天气| 罗城| 玛纳斯县| 玉门市| 湘潭县| 新民市| 正安县| 深泽县| 彭州市| 正镶白旗| 盈江县| 辉南县| 阿瓦提县| 光山县|