From d98607cbad6ec1899dc9adee0708a25b0410d084 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 7 Jun 2017 16:01:14 +0200 Subject: [PATCH] library/roles/rstudio-server/tasks/main.yml: Install bc, needed by the script that kill the abusive jobs. --- rstudio-server/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) 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