1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

systemd spawner is working writing to /var/lib/private

This commit is contained in:
George Hunt 2021-03-10 03:10:49 +00:00
parent 09904517e5
commit c2ef5999a7
3 changed files with 26 additions and 6 deletions

View file

@ -1,4 +1,9 @@
- name: Make the directories to hold notebooks
- name: We need a non-privileged user to write all the notebooks
ansible.builtin.user:
name: web-user
home: /opt/iiab/notebooks
- name: Make the directories to hold jupyter config
file:
state: directory
path: '{{ item }}'
@ -7,6 +12,12 @@
- '{{ jupyter_venv }}/etc/jupyterhub'
- '{{ jupyter_venv }}/etc/systemd'
- name: Make a directory to hold notebooks
file:
state: directory
path: /opt/iiab/notebooks
owner: web-user
- name: "Set 'nodejs_install: True' and 'nodejs_enabled: True'"
set_fact:
nodejs_install: True
@ -35,6 +46,8 @@
- ipywidgets
- jupyterhub
- jupyterlab
- jupyterhub_firstuseauthenticator
- jupyterhub-systemdspawner
virtualenv: "{{ jupyter_venv }}" # /opt/iiab/jupyter
virtualenv_site_packages: no
virtualenv_command: /usr/bin/virtualenv
@ -45,7 +58,7 @@
- name: Install the config file for jupyterhub
template:
src: jupyterhub_config.py
dest: '{{ jupyter_venv }}/env/jupyterhub/'
dest: '{{ jupyter_venv }}/etc/jupyterhub/'
- name: Use systemd to start jupyterhub
template:
src: jupyter.service