ansible 添加定时任务每分钟执行一次
ansible 127.0.0.1 -m cron -a "name=run_rsync_fincyInternal minute=*/1 job='/root/shell/rsync_fincyInternal.sh > /dev/null 2>&1'"
查看crontab -l
#Ansible: run_rsync_fincyInternal
*/1 * * * * /root/shell/rsync_fincyInternal.sh > /dev/null 2>&1
网友评论