Ansible:132
Keepalived-node-1:132 148
Keepalived-node-2:133 143
Web1:134
Web2:135
连接时出现ping不通
有可能是内网网卡影响
![](https://file.jishuzhan.net/article/1775856136734380034/04d5a45d5cb42eb8072b949ca2f60443.webp)
解决方法
![](https://file.jishuzhan.net/article/1775856136734380034/99eefdb787ce1e78266b20c5ffe9a14c.webp)
132 对所有主机做免密登录包括自己
All:132,133,134,135
Node:132,133
Web:134,135
132配置如下
Nginx.conf.j2 修改内容 那个是processor
Cp /etc/nginx/nginx.conf /root/roles/web/templates/nginx.conf.j2
我的src=/root/roles/web/templates/nginx.conf.j2
编写下一个角色
我的是Src/root/roles/....
![](https://file.jishuzhan.net/article/1775856136734380034/091838ff2dbd71355d9a4654b9d2b479.webp)
temps有问题
进行下列操作
![](https://file.jishuzhan.net/article/1775856136734380034/192de674e46391bf346019d86f7457c3.webp)
我的是cp /etc/nginx/nginx.conf
我的是Server 192.168.199.134:80
Server 192.168.199.135:80
![](https://file.jishuzhan.net/article/1775856136734380034/f0bca55db0a6102fe589377aac4e9f78.webp)
我的是cp /etc/keepalived/keepalived.conf
我的smtp_server 192.168.199.1
![](https://file.jishuzhan.net/article/1775856136734380034/0872b7d266655e43da78c9e8e6a43c58.webp)
我的virtual_ipaddress 是192.168.199.208