79

Ansible之roles使用-karony-51CTO博客

 6 years ago
source link: http://blog.51cto.com/13589448/2068549
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.
ansibleroles一.roles作用主要作用是重用playbook,例如我们无论安装什么软件都会安装时间同步服务,那么每个playbook都要编写ntptask。我们可以将ntptask写好,等到用的时候再调用就行了。ansible中将其组织成role,他有着固定的组织格式。以便playbook调用二.relos介绍以特定的层级目录结构进行组织的tasks、variables、handler

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK