首页 > TAG信息列表 > day16.5
day16.5
day16.5 playbook handlers(触发器) # 当修改完某个服务的配置文件时,应该重启服务 - hosts: web_group tasks: - name: 推送nginx配置文件 copy: src: "{{ item.src }}" dest: "{{ item.dest }}" with_items: - {src: "/root/code/nginx.conf"day16.5
day16.5 playbook handlers(触发器) # 当修改完某个服务的配置文件时,应该重启服务 - hosts: web_group tasks: - name: 推送nginx配置文件 copy: src: "{{ item.src }}" dest: "{{ item.dest }}" with_items: - {src: "/root/code/nginx.conf"