diff --git a/roles/ewatercycle/tasks/main.yml b/roles/ewatercycle/tasks/main.yml index 99396706..020dceb6 100644 --- a/roles/ewatercycle/tasks/main.yml +++ b/roles/ewatercycle/tasks/main.yml @@ -11,7 +11,7 @@ dest: '{{ conda_root }}/conda-lock.yml' mode: '0644' - name: Created conda environment with locked ewatercycle dependencies - command: '{{ conda_root }}/bin/conda-lock install --no-dev -n {{ conda_environment }} {{ conda_root }}/conda-lock.yml' # noqa no-changed-when + command: '{{ conda_root }}/bin/conda-lock install --no-dev -n {{ conda_environment }} -p {{ conda_root }}/envs/{{ conda_environment }} {{ conda_root }}/conda-lock.yml' # noqa no-changed-when args: creates: '{{ conda_root }}/envs/{{ conda_environment }}' diff --git a/roles/ewatercycle/templates/environment.yml.j2 b/roles/ewatercycle/templates/environment.yml.j2 index 74e76535..c278feb4 100644 --- a/roles/ewatercycle/templates/environment.yml.j2 +++ b/roles/ewatercycle/templates/environment.yml.j2 @@ -4,6 +4,7 @@ channels: - conda-forge - defaults dependencies: + # Skip ansible as running ansible second time in vagrant will make give --sudo does not exist error # - ansible - pip: # TODO use released version @@ -59,6 +60,7 @@ dependencies: - ipympl - ipynb-py-convert - jupyterhub-idle-culler + - nodejs # JupyterLab extensions server dependencies, lab extension should be added to defaults of jupyter role - ipyleaflet - jupyterlab_code_formatter diff --git a/roles/jupyter/tasks/main.yml b/roles/jupyter/tasks/main.yml index a8d22cb9..fa6ae2b3 100644 --- a/roles/jupyter/tasks/main.yml +++ b/roles/jupyter/tasks/main.yml @@ -26,7 +26,7 @@ name: configurable-http-proxy executable: '{{ conda_environment_bin }}/npm' environment: - PATH: "{{ conda_environment_bin }}:{{ ansible_env.PATH }}" + PATH: "{{ conda_environment_bin }}:{{ ansible_env.PATH }}" - name: USGS data home directory file: path: '{{ jupyterhub_spawner_environment.USGS_DATA_HOME }}'