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

19 lines
376 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
- name: Remove file (delete file)
become: yes
file:
path: /usr/local/sbin/check-docker.j2
state: absent
- name: create cron
become: yes
cron:
name: "check docker"
minute: "*/15"
job: "/usr/local/sbin/check-docker"