implemented job metrics

This commit is contained in:
Julian Rother 2021-05-01 16:17:52 +02:00
parent 503e9b69a1
commit 1c11148374
No known key found for this signature in database
GPG key ID: 2F811E2338EE029B
5 changed files with 115 additions and 25 deletions

View file

@ -1,3 +1,16 @@
- name: install python3-croniter
when: cron.enable_monitoring
apt:
pkg: python3-croniter
- name: copy monitor-cronjob.py script
when: cron.enable_monitoring
ansible.builtin.copy:
src: monitor-cronjob.py
dest: /usr/local/bin/monitor-cronjob.py
mode: 0755
owner: root
group: root
- include_tasks:
file: job.yml
with_dict: "{{ cron.jobs }}"