Fix the installation of the jupyterhub configuration file. Install coursier.

This commit is contained in:
Andrea Dell'Amico 2020-08-28 16:12:45 +02:00
parent 409b687fcc
commit b9e2c79bb9
1 changed files with 5 additions and 3 deletions

View File

@ -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