NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
# 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 ```