48

ansible组件-playbook学习笔记-MonkeyGentleman的博客

 4 years ago
source link: http://blog.51cto.com/13523939/2074049
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.
playbook的基础组件name定义playbook或者task的名称hosts用于指定要执行指定任务的主机user用于指定远程主机上的执行任务的用户task任务列表vars定义变量vars_files定义变量文件notify任务执行结果如果是发生更改的则触发定义在handler的任务handlers用于当前关注资源发生变化时采取一定指定的操作示例1>#vimtest.yml>-ho

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK