这是目录(app 是模拟的角色)

[root@test ansible]# tree
.
├── app_role.retry
├── app_role.yml
├── httpd_role.yml
├── nginx_role.retry
├── nginx_role.yml
└── roles
├── app
│   ├── files
│   │   └── moniwenjiancopy.conf
│   ├── handlers
│   │   └── main.yml
│   ├── tasks
│   │   ├── copy.yml
│   │   ├── cptml.yml
│   │   ├── group.yml
│   │   ├── main.yml
│   │   ├── start.yml
│   │   ├── user.yml
│   │   └── yum.yml
│   ├── templates
│   │   └── httpd.conf.j2
│   └── vars
│   └── main.yml
├── httpd
│   ├── files
│   │   └── httpd.conf
│   └── tasks
│   ├── copy.yml
│   ├── main.yml
│   └── user.yml
└── nginx
├── tasks
│   ├── group.yml
│   ├── main.yml
│   ├── restart.yml
│   ├── start.yml
│   ├── templ.yml
│   ├── user.yml
│   └── yum.yml
└── templates
└── nginx.conf.j2

此处遇到个坑, ERROR! The requested handler 'restart service' was not found in either the main handlers list nor in the listening handlers list

百度了一下解决方法是把handlers的下的*.yml  文件名称改为main.yml

最新文章

  1. Windows下Python中pip安装Pillow报错总结(转载)
  2. Log4J日志管理类使用详解 (转)
  3. 简单配置webpack自动刷新浏览器
  4. C#线程同步的几种方法
  5. CodeForces 716B Complete the Word
  6. 如何用bat批处理编译swf项目
  7. Java设计模式-模板方法模式(Template Method)
  8. oracle索引使用时注意
  9. C# 使用ffmpeg.exe进行音频转换完整demo
  10. Node.js:util.inherits 面向对象特性【原型】
  11. Js作用域与作用域链详解[转]
  12. 单源最短路径的Bellman-Ford 算法
  13. 单例模式——Singleton
  14. Java 如何防止线程意外中止
  15. [转]swift 学习资源 大集合
  16. VNCServer,SSH Secure Shell Client,window远程控制linux
  17. C#中异步调用示例与详解
  18. angular.copy(source, destination)
  19. SpringData JPA框架使用时出现JSON循环依赖解决方案
  20. js全选反选

热门文章

  1. 20190930-01 Redis的事务 000 031
  2. oracle之通过group by产生统计报告
  3. JAVA知识点 I/O流框架简要笔记
  4. 如何把自己开发的项目上传到GitHub仓库或者码云仓库?
  5. [LeetCode]72. 编辑距离(DP)
  6. Dubbo必须会的知识点
  7. 阿里云服务器外网IP无法访问网站
  8. k8s service对象
  9. h5页面在浏览器上好好的,到手机上熄火了又看不到报错信息怎么办?
  10. SessionMiddleware源码分析