From 6f51e86f0bd6f28d42bcd4518305ca2dbe5b0dc7 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 28 Aug 2020 17:19:15 +0200 Subject: [PATCH] Do not try to install the jupyter scala kernel if it's already present. --- tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index eb62f9b..7c1b9fd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -64,8 +64,14 @@ block: - name: Download the coursier executable get_url: url=https://git.io/coursier-cli-linux dest=/usr/local/bin/coursier owner=root group=root mode='0555' + + - name: Check if the scala support for jupyter is already installed + stat: path="/root/.local/share/jupyter/kernels/scala" + register: jupyter_scala + - name: Integrate Spark and Scala command: /usr/local/bin/coursier launch --fork almond:0.5.0 --scala {{ jupyter_spark_scala_version }} -- --install + when: not jupyter_scala.stat.exists when: - jupyter_is_hadoop_node