首页 > Web开发 > 详细

roles学习笔记(模拟安装httpd服务)

时间:2020-01-14 15:38:36      阅读:200      评论:0      收藏:0      [点我收藏+]

这是目录(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

roles学习笔记(模拟安装httpd服务)

原文:https://www.cnblogs.com/hsyw/p/12191857.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!