摘要: Ansible常用模块整理 ping ping模块用来检查目标主机是否在线 例子:ansible webserver -m ping yum yum模块用来在Centos系统上使用yum命令安装软件包 选项: name: 指定安装包的名字 state:latest 安装最新版 present 默认安装 installed 安装 阅读全文
posted @ 2019-12-21 12:04 Security 阅读(1521) 评论(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 阅读(755) 评论(0) 推荐(0) 编辑
摘要: nfs服务器共享存储 NFS的使用: 主机 192.168.189.129 备份机 192.168.189.130 图文详解见:https://www.cnblogs.com/security-guard/Linux公社详解NFS共享存储服务 实验操作:准备一台服务器当存储服务器,在其上部署nfs(192.168.189 阅读全文
posted @ 2019-12-21 09:47 Security 阅读(499) 评论(0) 推荐(0) 编辑