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
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
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M