-
Notifications
You must be signed in to change notification settings - Fork 0
/
conda.yml
39 lines (37 loc) · 1.55 KB
/
conda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# We use Conda instead of
# - OS packages: not all packages are available, and some may be very outdated
# - pip packages: this may cause problems with library dependencies
#
# Only the basic packages will be installed; everything else is
# available through the Jupyter docker container.
- name: Install Conda, JupyterHub & related packages
block:
# Note: there is an Ansible Conda module, but it's not core
# Instead, the following relies on files or directories being created
- get_url:
url: https://repo.continuum.io/miniconda/Miniconda3-3.7.0-Linux-x86_64.sh
dest: /tmp
- command: bash /tmp/Miniconda3-3.7.0-Linux-x86_64.sh -b -p /opt/conda
args:
creates: /opt/conda
- command: /opt/conda/bin/conda update --yes --quiet conda
- command: /opt/conda/bin/conda create --name jupyterhub --yes --quiet --channel conda-forge python=3.7
args:
creates: /opt/conda/envs/jupyterhub/
- command: /opt/conda/bin/conda install --name jupyterhub --yes --quiet --channel conda-forge {{ item }}
args:
creates: /opt/conda/pkgs/{{ item }}-*bz2
# TODO: fix version numbers for each package once we have a full and compatible installation
# This may speed up conda trying to match dependencies
# TODO2: install all packages at once; this may speed up resolving dependencies
loop:
- jupyterhub
- notebook
- jupyterlab
- sudospawner
- dockerspawner
- numpy
- file:
path: /opt/conda
mode: u=rwX,g=rX,o=rX
recurse: yes