Commit 4fe5efb3 by Jocelyn Delalande

jupyterhup: WIP role

Not using it at the moment, but I could resume working on it at some point,
whon knows ?
parent b30e27f0
WIP JupyterHUB role
===================
**Work in progress, cannot be used as-is.**
- name: install apt dependencies
apt: pkg={{ item }}
with_items:
- npm
- nodejs-legacy
- name: create dedicated user
user: name=jupyterhub home=/opt/jupyterhub
- name: install jupyterhub
pip: name=jupyterhub virtualenv=/opt/jupyterhub/venv
become: jupyterhub
notify: restart jupyterhub
- name: systemd script is in place
template:
src: jupyterhub.service.j2
dest: /etc/systemd/system/jupyterhub.service
notify: restart jupyterhub
[Unit]
Description=JupyterHub
After=network.target
[Service]
WorkingDirectory=/opt/jupyterhub/
ExecStart=/opt/jupyter/venv/bin/jupyterhub
[Install]
WantedBy=multi-user.target
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment