89

ansible基础四-李亮的博客-51CTO博客

 6 years ago
source link: http://blog.51cto.com/13598893/2069784
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.
roles《角色》介绍ansilbe自1.2版本引入的新特性,用于层次性、结构化地组织playbook。roles能够根据层次型结构自动装载变量文件、tasks以及handlers等。要使用roles只需要在playbook中使用include指令即可。简单来讲,roles就是通过分别将变量、文件、任务、模板及处理器放置于单独的目录中,并可以便捷地调用它们的一种机制。角色一般用于基于主机构建服务的

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK