diff --git a/rstudio-server/tasks/main.yml b/rstudio-server/tasks/main.yml index 7458ddaf..5b0ef172 100644 --- a/rstudio-server/tasks/main.yml +++ b/rstudio-server/tasks/main.yml @@ -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