ansible/roles/docker-cluster/tasks/docker-watcher.yml

14 lines
276 B
YAML
Raw Normal View History

2020-12-03 21:06:20 +00:00
---
- name: Create hostfile
become: yes
template:
src: usr/local/sbin/check-docker.j2
dest: /usr/local/sbin/check-docker
2020-12-03 22:54:55 +00:00
mode: '0755'
2020-12-03 21:06:20 +00:00
- name: create cron
become: yes
cron:
name: "check docker"
minute: "*/15"
job: "/usr/local/sbin/check-docker"