From 47babe2112ae2c6462f645cb2611e8776eb89992 Mon Sep 17 00:00:00 2001 From: mortenwh Date: Thu, 4 Jul 2019 12:09:08 +0200 Subject: [PATCH] #30: moved notebooks folder out of lib --- provisioning/roles/openwind/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/provisioning/roles/openwind/tasks/main.yml b/provisioning/roles/openwind/tasks/main.yml index 6b39bc9..0f615f6 100644 --- a/provisioning/roles/openwind/tasks/main.yml +++ b/provisioning/roles/openwind/tasks/main.yml @@ -7,7 +7,7 @@ shell: 'sudo chown -R vagrant /home/vagrant/anaconda/' - name: openwind | Add Jupyter Notebook to crontab - cron: name="Jupyter Notebook" special_time=reboot job="sleep 60; {{ conda_dir }}/envs/{{ env_name }}/bin/jupyter-notebook --ip=0.0.0.0 --no-browser --notebook-dir={{ dev_sources_dir }}/notebooks/ --NotebookApp.token=vagrant" + cron: name="Jupyter Notebook" special_time=reboot job="sleep 60; {{ conda_dir }}/envs/{{ env_name }}/bin/jupyter-notebook --ip=0.0.0.0 --no-browser --notebook-dir=/vagrant/notebooks/ --NotebookApp.token=vagrant" - name: openwind | Check if Jupyter is running shell: ps aux | grep jupyter | grep -v grep @@ -16,7 +16,7 @@ register: jupyter_status - name: openwind | Launch Jupyter Notebook - shell: "nohup {{ conda_dir }}/envs/{{ env_name }}/bin/jupyter-notebook --ip=0.0.0.0 --no-browser --notebook-dir={{ dev_sources_dir }}/notebooks/ --NotebookApp.token=vagrant > /dev/null 2>&1 &" + shell: "nohup {{ conda_dir }}/envs/{{ env_name }}/bin/jupyter-notebook --ip=0.0.0.0 --no-browser --notebook-dir=/vagrant/notebooks/ --NotebookApp.token=vagrant > /dev/null 2>&1 &" when: jupyter_status.rc != 0 #- name: Nansat Setup Python | Check if numpy is imported