83

运维自动化-Ansible ( 四 )-金色之谜-51CTO博客

 6 years ago
source link: http://blog.51cto.com/191226139/2069226
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
模板templates功能:根据模块文件动态生成对应的配置文件Jinja2语言,使用字面量,有下面形式字符串:使用单引号或双引号数字:整数,浮点数列表:[item1,item2,...]元组:(item1,item2,...)字典:{key1:value1,key2:value2,...}布尔型:true/false算术运算:+,-,*,/,//,%,**比较操作:==,!=,>,&g

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK