Commit 30c33481 authored by nanahira's avatar nanahira

fix permissions

parent 7fa19986
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
- '{{jupyter_root}}/nginx/conf.d' - '{{jupyter_root}}/nginx/conf.d'
- '{{jupyter_root}}/instances' - '{{jupyter_root}}/instances'
- '{{jupyter_root}}/instances/config' - '{{jupyter_root}}/instances/config'
- '{{jupyter_root}}/instances/data'
- name: docker-compose file - name: docker-compose file
template: template:
src: './docker-compose.yml.j2' src: './docker-compose.yml.j2'
...@@ -48,11 +49,22 @@ ...@@ -48,11 +49,22 @@
perms: yes perms: yes
notify: restart_nginx notify: restart_nginx
- name: instance configs - name: instance configs
become: true
copy: copy:
content: '{{ item.notebookConfig | to_json }}' content: '{{ item.notebookConfig | to_json }}'
dest: '{{jupyter_root}}/instances/config/{{item.name}}.json' dest: '{{jupyter_root}}/instances/config/{{item.name}}.json'
owner: 1000
group: 1000
with_items: '{{instances}}' with_items: '{{instances}}'
notify: restart_all notify: restart_all
- name: create directory
become: true
file:
path: '{{jupyter_root}}/instances/data/{{item.name}}'
state: directory
owner: 1000
group: 1000
with_items: '{{instances}}'
- name: docker-compose up -d - name: docker-compose up -d
docker_compose: docker_compose:
project_src: '{{ jupyter_root }}' project_src: '{{ jupyter_root }}'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment