51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

lb.yml


原始文件:

|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [root@m01 /etc/ansible/roles/lbserver/tasks]#cat /root/ansible/lb.yml - hosts: lbs tasks: - name: configre lbs copy: src: ./proxy/ dest: /etc/nginx/conf.d/ - name: copy params copy: src: ./proxy/proxy_params dest: /etc/nginx/proxy_params - name: restart nginx systemd: name: nginx state: restarted - hosts: webs tasks: - name: config nginx in webs copy: src: ./proxy/proxy_params dest: /etc/nginx/proxy_params - name: restart nginx systemd: name: nginx state: restarted |

赞(4)
未经允许不得转载:工具盒子 » lb.yml