Skip to content

Commit

Permalink
#30: moved notebooks folder out of lib
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenwh committed Jul 4, 2019
1 parent 973c336 commit 47babe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provisioning/roles/openwind/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 47babe2

Please sign in to comment.