diff --git a/jupyterlab/jupyterlab.yml b/jupyterlab/jupyterlab.yml index 6b7d089..281e46e 100644 --- a/jupyterlab/jupyterlab.yml +++ b/jupyterlab/jupyterlab.yml @@ -4,24 +4,23 @@ name: geerlingguy.swap vars: swap_file_size_mb: "2024" -- name: Download Miniconda + +- name: Download Miniforge get_url: - url: https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh - dest: /tmp/miniconda.sh + url: https://github.com/conda-forge/miniforge/releases/download/{{jupyterlab_vars.MINI_FORGE_RELEASE}}/Miniforge3-{{jupyterlab_vars.MINI_FORGE_RELEASE}}-Linux-x86_64.sh + dest: /tmp/miniforge.sh -- name: Install Miniconda - command: bash /tmp/miniconda.sh -b -p {{jupyterlab_vars.CONDA_DIR}} +- name: Install Miniforge + command: bash /tmp/miniforge.sh -b -p {{ jupyterlab_vars.CONDA_DIR }} args: - creates: "{{jupyterlab_vars.CONDA_DIR}}/bin/conda" - when: not jupyterlab_vars.create_only_backend + creates: "{{ jupyterlab_vars.CONDA_DIR }}/bin/mamba" -- name: Add Miniconda to PATH +- name: Add Miniforge to PATH lineinfile: path: /etc/profile - line: 'export PATH={{jupyterlab_vars.CONDA_DIR}}/bin:$PATH' + line: 'export PATH={{ jupyterlab_vars.CONDA_DIR }}/bin:$PATH' become: true become_user: root - when: not jupyterlab_vars.create_only_backend - name: Install conda-env role include_role: diff --git a/jupyterlab/jupyterlab_vars_file.yml b/jupyterlab/jupyterlab_vars_file.yml index 1b01b34..d2392b8 100644 --- a/jupyterlab/jupyterlab_vars_file.yml +++ b/jupyterlab/jupyterlab_vars_file.yml @@ -5,7 +5,9 @@ jupyterlab_vars: base_url: default_user: ubuntu DEFAULT_TOKEN: simplevm - CONDA_DIR: /home/ubuntu/miniconda3 + CONDA_DIR: /home/ubuntu/miniforge conda_env_environment_yml: ./jupyterlab_env.yml ENV_NAME: denbi TIMEOUT_LENGTH: 5m + MINI_FORGE_RELEASE: 24.11.2-1 +