您的位置:首页 > 其它

3.5-ansible实现任务计划

2016-04-06 20:36 113 查看
Ansible实现任务计划

*ansible testhost -m cron -a "name='test cron' job='/bin/touch /tmp/1212.txt' weekday=5-6"

*若要删除该cron 只需要加一个字段 state=absent
ansible testhost -m cron -a "name='test cron' state=absent"

*其他的时间表示:分钟 minute 小时 hour 日期 day 月份 month
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: