
ansible
文章平均质量分 89
这闺女长得真俊啊
发誓和放屁也没差
展开
-
ansible------playbook多样化编写:Templates、Tags、Roles
Templates、Tags、Roles一、Templates模块二、tags模板2.1 tags脚本2.2 tags执行2.2.1 直接执行2.2.2 tags执行2.2.3 always执行三、Roles3.1 roles内各目录含义解释3.2 在一个playbook中使用roles的步骤3.3 实验:安装搭建LAMP架构3.3.1 创建文件3.3.2 编写httpd模块3.3.3 编写MySQL模块3.3.4 编写PHP模块3.3.5 编写roles总脚本一、Templates模块ansible的原创 2021-04-08 17:07:55 · 1567 阅读 · 5 评论 -
ansible------剧本playbook编写规则详述
ansible -inwentory主机清单ansible默认的主机清单/etc/ansible/hosts文件主机清单可以手动配置,也可以通过Dynamic Inventory动态生成一般主机名使用FQDNvi /etc/ansible/hosts[webserver] #方括号设置组名www1.example.org #定义被监控主机,这边可以是主机名,也可以是IP地址,主机名需要修改/etc/hosts文件www2.example.org:2222 #冒号后定义远程连接端口原创 2021-04-08 10:15:33 · 745 阅读 · 2 评论 -
ansible-------自动化管理工具
ansible[root@localhost ~]# systemctl stop firewalld[root@localhost ~]# setenforce 0[root@localhost yum.repos.d]# yum -y install epel-release.noarch [root@localhost ~]# yum install -y ansible[root@localhost ~]# yum install -y tree[root@localhost ~]# t原创 2021-04-06 19:59:06 · 1563 阅读 · 9 评论