随笔分类 -  Ansible-playbook

摘要:解析ansible远程管理客户端【win终端为例】一、前提: 1.1、windows机器开启winrm服务,并设置成允许远程连接状态 具体操作命令如下 set-executionpolicy remotesigned winrm quickconfig #配置auth winrm set winrm/config/service/auth '@{B 阅读全文
posted @ 2022-03-18 18:25 Security 阅读(1830) 评论(0) 推荐(0)
摘要:ansible批处理windows机器一、 前提 1.1、windows机器开启winrm服务,并设置成允许远程连接状态 具体操作命令如下 set-executionpolicy remotesigned winrm quickconfig #配置auth winrm set winrm/config/service/auth '@{B 阅读全文
posted @ 2022-03-10 18:33 Security 阅读(615) 评论(0) 推荐(0)
摘要:Ansible常用模块整理ping ping模块用来检查目标主机是否在线 例子:ansible webserver -m ping yum yum模块用来在Centos系统上使用yum命令安装软件包 选项: name: 指定安装包的名字 state:latest 安装最新版 present 默认安装 installed 安装 阅读全文
posted @ 2019-12-21 12:04 Security 阅读(1531) 评论(0) 推荐(0)
摘要:ansible-playbook实例准备前提 配置ansible主机详情:https://www.cnblogs.com/security-guard/ nginx的安装 编写nginx的自动部署文件nginx.yml hosts主机更改为自己定义的 访问目标主机组的IP地址,查看测试页面 测试页面:显示的是本机ip <h1>{{an 阅读全文
posted @ 2019-12-21 11:40 Security 阅读(769) 评论(0) 推荐(0)
摘要:ansible部署EFK修改自己不确定的配置文件前,先准备备份,防患于未然!!! Environment:{ 目前测试准备三台2m2g虚拟机 详情概略图见EFK的架构图 https://www.cnblogs.com/security-guard/ 1、装filebeat 用于客户端web界面 172 2、安装logsta 阅读全文
posted @ 2019-12-12 15:34 Security 阅读(508) 评论(0) 推荐(0)
摘要:ansible 批量部署准备工作Ansible:自动化运维工具,基于Python开发 功能{ 批量系统配置 批量程序部署 批量运行命令等等 } 准备工作: 一、操作主机安装epel源 和 ansible工具 yum -y install epel-release yum -y install ansible ansible --v 阅读全文
posted @ 2019-12-12 10:29 Security 阅读(243) 评论(0) 推荐(0)