Commit 6415df69 by ChongmingDu

uodate doc,conf

parent 88c191bb
......@@ -48,3 +48,31 @@
1. 检查各自模块的templates中的配置文件,更改为相应要求
2. 在/Ant_Devops/standard.yml中roles字段中添加相应模块
3. 运行 ansible-playbook -i host.yml -u root standard.yml
# 完整演示
## 1
![avatar](./images/1.png)
## 2
![avatar](./images/2.png)
## 3
![avatar](./images/3.png)
## 4
![avatar](./images/4.png)
## 5
![avatar](./images/5.png)
## 6
![avatar](./images/6.png)
## 7
![avatar](./images/7.png)
## 8
![avatar](./images/8.png)
## 9
![avatar](./images/9.png)
## 10
![avatar](./images/10.png)
## 11
![avatar](./images/12.png)
## 12
![avatar](./images/13.png)
## 13
![avatar](./images/11.png)
\ No newline at end of file
......@@ -2,4 +2,4 @@
172.16.233.36 hostname=officialpc1 #hostname这里是想要配置的主机名
172.16.233.37 hostname=officialpc2
[test]
172.16.233.38 hostname=officialpctest
\ No newline at end of file
47.101.162.14 hostname=officialpctest
......@@ -23,14 +23,14 @@
- name: "mkdir nginxdir"
file:
dest: /usr/local/nginx/conf/conf.d
path: /usr/local/nginx/conf/conf.d
owner: nginx
group: nginx
mode: 0755
state: directory
- name: "install nginx"
shell: cd /usr/local/tengine-2.2.2;./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module –with-stream --with-http_image_filter_module --with-http_gzip_static_module --with-http_stub_status_module --http-log-path=/data/logs/nginx/access.log --error-log-path=/data/logs/nginx/error.log &>/dev/null;make -j 4&&make install
shell: cd /usr/local/tengine-2.2.2;./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_image_filter_module --with-http_gzip_static_module --with-http_stub_status_module &>/dev/null;make -j 4&&make install
- name: "link nginx bin"
file:
......@@ -41,7 +41,7 @@
- name: "mkdir nginx log dir"
file:
dest: /data/nginx
path: /data/nginx
owner: nginx
group: nginx
mode: 0755
......@@ -49,7 +49,7 @@
- name: "mkdir nginx ssl dir"
file:
dest: /data/nginx/ssl
path: /data/nginx/ssl
owner: nginx
group: nginx
mode: 0755
......@@ -57,7 +57,7 @@
- name: "static dir"
file:
dest: /data/www
path: /data/www
mode: 0755
state: directory
......
......@@ -4,13 +4,6 @@
name: https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
state: present
- name: "make zabbix log dir"
file:
dest: /data/var/{run,log}
owner: zabbix
group: zabbix
mode: 0755
state: directory
- name: "Install zabbix agent"
yum:
......
......@@ -6,7 +6,7 @@ LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
##### Passive checks related
# zabbix server ip地址
#Server=47.97.110.64
Server=172.16.162.209
### Option: ServerActive
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment