zoukankan      html  css  js  c++  java
  • roles学习笔记(模拟安装httpd服务)

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

  • 相关阅读:
    JavaScript的数据类型
    php字符串操作
    PHP快速入门
    JavaScript简介与使用方法
    《技术大牛的养成指南》--读书笔记
    Java并发编程-多线程
    分布式锁的实现方式和优缺点&Java代码实现
    Java操作Zookeeper
    排序二叉树、平衡二叉树、红黑树
    HashMap&Hashtable&LinkedHashMap&ConcurrentHashMap&Collections.synchronizedMap
  • 原文地址:https://www.cnblogs.com/hsyw/p/12191857.html
Copyright © 2011-2022 走看看