企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
# handler模块 ### handler模块 适用于同步配置文件,配置文件同步成功后重启服务 此处,若copy成功(无此文件或者文件内容不同,则copy成功;否则copy失败),则触发handlers,启动相应操作。 ``` --- - hosts: test.com user: root tasks: - name: copy file copy: src=/tmp/handlers.txt dest=/tmp/handlers.txt notify: test handlers handlers: - name: test handlers shell: echo `date` > /tmp/handlers.txt ```