library/roles/rstudio-server/tasks/main.yml: Install bc, needed by the script that kill the abusive jobs.

This commit is contained in:
Andrea Dell'Amico 2017-06-07 16:01:14 +02:00
parent 2fddf89a92
commit d98607cbad
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@
service: name=rstudio-server state=stopped enabled=no
when: not rstudio_enabled
- name: Install bc, needed by the script that kills abusing jobs
apt: pkg=bc state=present update_cache=yes cache_valid_time=3600
when: rstudio_install_kill_script
tags: [ 'rstudio', 'rstudio_server', 'rstudio_kill_rogues' ]
- name: Install a script that kills the abusing job processes
copy: src=kill-rogue-jobs dest=/usr/local/bin/kill-rogue-jobs owner=root group=root mode=0755
when: rstudio_install_kill_script