Ansible:132
Keepalived-node-1:132 148
Keepalived-node-2:133 143
Web1:134
Web2:135
连接时出现ping不通
有可能是内网网卡影响

解决方法

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/....

temps有问题
进行下列操作

我的是cp /etc/nginx/nginx.conf
我的是Server 192.168.199.134:80
Server 192.168.199.135:80

我的是cp /etc/keepalived/keepalived.conf
我的smtp_server 192.168.199.1

我的virtual_ipaddress 是192.168.199.208