摘要: ansible 基本模块及常见命令参数使用 命令格式 ansible webserver|www.a.com|1.1.1.1 (主机组/主机名/主机ip) -m (模块参数) shell(模块名字) -a (命令参数) “echo xxx” 远程登录方式 密码方式之免交互 vi /etc/ansib 阅读全文
posted @ 2020-07-10 19:45 fanggege 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 概述 ansible 当前主流的批量配置管理工具,相比于saltstack 它是无agent 模式,基于ssh 去远程管理主机。有密码和密钥两种方式远程认证方式。 安装 yum -y install ansible (前提是有epel 源,如果没有需要安装) pip install ansible 阅读全文
posted @ 2020-07-10 11:42 fanggege 阅读(363) 评论(0) 推荐(0) 编辑