Skip to content

Commit 0bc3983

Browse files
committed
add jupyter config on setup #6
1 parent 44ce034 commit 0bc3983

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

setup_jupyter.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
- docker-py
5252
- docker-compose
5353

54+
jupyter_notebook_config_py_url: "https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/files/jupyter_notebook_config.py"
5455
ssh_private_key_url: "https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/files/ssh/id_rsa"
5556
ansible_cfg_url: "https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/ansible.cfg"
5657
inventory_url: "https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/inventory"
@@ -129,6 +130,15 @@
129130
- name: install the jupyter notebook
130131
pip: name=jupyter version=1.0.0 state=present
131132

133+
# Disable Jupyter authentication of token.
134+
- name: create `/root/.jupyter` directory
135+
file: path=/root/.jupyter state=directory mode=0700
136+
137+
- name: get the jupyter_notebook_config.py
138+
get_url: >
139+
url={{ jupyter_notebook_config_py_url }} dest=/root/.jupyter/jupyter_notebook_config.py mode=0644
140+
checksum=md5:c663914a24281ddf10df6bc9e7238b07
141+
132142
# Create `ssh_config` directory.
133143
- name: create `/root/.ssh` directory
134144
file: path=/root/.ssh state=directory mode=0700

0 commit comments

Comments
 (0)