From b9e2c79bb99570cacb4d7b669adf0983ce082998 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 28 Aug 2020 16:12:45 +0200 Subject: [PATCH] Fix the installation of the jupyterhub configuration file. Install coursier. --- tasks/main.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 5b281ac..9c3291e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -27,8 +27,7 @@ register: reload_systemd - name: Install the jupyter hub configuration - template: src={{ item.name }} dest={{ jupyter_hub_conf }} mode='0640' owner=root group={{ jupyter_hub_user }} - with_items: '{{ jupyter_hub_system_files }}' + template: src=jupyterhub_config.py.j2 dest={{ jupyter_hub_conf }} mode='0640' owner=root group={{ jupyter_hub_user }} notify: Restart jupyterhub - name: Install the hub configurable proxy @@ -63,8 +62,11 @@ - name: Jupyterhub, Spark and Scala 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: Integrate Spark and Scala - command: coursier launch --fork almond:0.5.0 --scala {{ jupyter_spark_scala_version }} -- --install + command: /usr/local/bin/coursier launch --fork almond:0.5.0 --scala {{ jupyter_spark_scala_version }} -- --install when: - jupyter_is_hadoop_node