implemented job metrics
This commit is contained in:
parent
503e9b69a1
commit
1c11148374
5 changed files with 115 additions and 25 deletions
|
|
@ -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 }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue