• 1. ansible简介


    特性:

    • No agents:不需要在被管控主机上安装任意客户端
    • No server:无服务器端,使用时直接运行命令即可
    • Modules in any languages:基于模块工作,可使用任意语言开发模块
    • YAML,not code:使用yaml语言定制剧本playbook
    • SSH by default:基于SSH工作
    • Strong multi-tier solution:可实现多级指挥
     
    基本架构:

     

    命令格式:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    #常用格式
    ansible <host-pattern> [-f forks] [-m module] [-a args]
    host-pattern # 可以是all,或者配置文件中的主机组名
    -f forks # 指定并行处理的进程数
    -m module # 指定使用的模块,默认模块为command
    -a args # 指定模块的参数

    #查看各模块
    ansible-doc [options] [modules]
    # 主要选项有:
    -l或--list # 列出可用的模块
    -s或--snippet #显示指定模块的简略使用方法
     





  • 相关阅读:
    Restful风格
    SpringMVC概念、原理及搭建
    Mybatis搭建
    HttpServletRequest、HttpServletResponse、Cookie、Session
    Servlet基础
    Spring整合Mybatis
    PHP代码标识
    IOC及Bean容器
    框架
    Spring概况
  • 原文地址:https://www.cnblogs.com/51runsky/p/4665769.html
Copyright © 2020-2023  润新知