ansible-template
时间: 2023-09-02 21:11:20 浏览: 168
Ansible的Template模板是一种在Ansible Playbook中使用的工具,它与copy模块类似,但可以根据特定条件动态地设置要复制文件中的部分关键内容。模板文件使用jinjia2语言进行配置,后缀名为.j2。在Ansible的Playbook中,Template模板的使用支持条件判断、循环、逻辑运算、比较等功能,增强了配置的灵活性。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Ansible详解(十)——Ansible Template模板基础](https://blog.csdn.net/weixin_40228200/article/details/123513678)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [ansible-template-ui:用于测试Ansible模板的Web UI](https://download.csdn.net/download/weixin_42106299/18979505)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文