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

31 lines
837 B
YAML
Raw Normal View History

2021-03-08 01:57:10 +00:00
- 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'
2021-03-08 01:57:10 +00:00
- name: Use pip to install into a virtual environment
pip:
name:
- pip
2021-03-08 01:57:10 +00:00
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 }}'