1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00
iiab/roles/jupyter/tasks/install.yml
2021-04-13 17:23:27 +01:00

30 lines
837 B
YAML

- name: Make the directories to hold notebooks
file:
state: directory
path: '{{ item }}'
with_items:
- '{{ notebook_dir }}/etc/jupyter'
- '{{ notebook_dir }}/etc/jupyterhub'
- '{{ notebook_dir }}/etc/systemd'
- name: Use pip to install into a virtual environment
pip:
name:
- pip
virtualenv: "{{ jupyter_venv }}" # /opt/iiab/jupyter
virtualenv_site_packages: no
virtualenv_command: /usr/bin/virtualenv
virtualenv_python: python3
extra_args: "--no-cache-dir"
when: internet_available
- name: Fetch the Littlest JupyterHub code
ansible.builtin.git:
repo: '{{ jupyterhub_url }}
dest: '{{ jupyter_venv }}'
- name: Install a bootstrap.py that permits installation on other than Ubunt
template:
src: bootstrap.py
dest: '{{ jupyter_venv }}'