zoukankan      html  css  js  c++  java
  • ansible初识

    ansible: 运维自动化的工具, 基本功能, 基于ssh远程连接, 连接验证(ssh-keygen ssh-copy-id  ip)

    下载:

      1. 安装epel源 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

      2. yum install -y ansible

    语法格式:

      ansible <host-pattern>  [options]

        -a 模块参数

        -C 不做任何改变, 但是会执行操作命令

        -f FORKS --forks=FORKS 用于指定并发

        --list-hosts 列举管理客户主机列表

        -k --ask-pass 输入密码

    HOST-PATTERN

      单个主机 ip

      多个主机 ip1, ip2,ip3

      选择所有主机 all

      分组  groupname

      多个组:  交集 'web: &db'

           并集 web, db  or  'db:web'

             差集 'web:!db'

    My ansible  the first command

      ansible all -m ping

      

  • 相关阅读:
    King's Quest
    Prince and Princess
    Strongly connected
    线性渐变--linear-gradient
    镜像渐变-radio-gradient
    宽度自适应-左右
    宽度自适应-左中右
    HTML5 视频规范简介
    SVG格式
    Html5新标签解释及用法
  • 原文地址:https://www.cnblogs.com/tcpblog/p/10554161.html
Copyright © 2011-2022 走看看