1、cron定时任务模块
name="注释" minute=分钟 * hour=小时 * day = 日期 * month=月份 * weekday=周 * job = 命令 state=absent 删除
2、批量下发脚本
ansible -i k8s-hosts devops -m shell -a "sudo mkdir -p /data/scripts/" ansible -i k8s-hosts devops -m shell -a "sudo chmod -R 777 /data/scripts/" ansible -i k8s-hosts devops -m copy -a "src=clear-images.sh dest=/data/scripts/clear-images.sh" ansible -i k8s-hosts devops -m copy -a "src=delete-java-logs.sh dest=/data/scripts/delete-java-logs.sh"
3、批量创建定时任务
标签:devops,sh,任务,ansible,scripts,定时,k8s,data From: https://www.cnblogs.com/linjiangCN/p/16965042.html