Would like to move to to https://github.com/rug-cit-hpc/pg-playbooks but has large files...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
597 B

---
- name: Install yum dependencies
yum:
state: latest
update_cache: yes
disable_gpg_check: yes
name:
- python3-pynumparser
- name: install the script.
copy:
src: files/warn_gpu_not_used
dest: /sbin/warn_gpu_not_used
mode: 0755
- cron:
name: Cancel gpu jobs not using any gpu.
minute: '*/15'
user: root
job: 'SLACK_URL={{ slack_url }} /usr/bin/python3 /sbin/warn_gpu_not_used'
cron_file: warn_gpu_not_used
# Don't buzz the whole team... yet
- cronvar:
name: MAILTO
value: e.m.a.rijpkema@rug.nl
cron_file: warn_gpu_not_used