Commit 30c33481 authored by nanahira's avatar nanahira

fix permissions

parent 7fa19986
......@@ -19,6 +19,7 @@
- '{{jupyter_root}}/nginx/conf.d'
- '{{jupyter_root}}/instances'
- '{{jupyter_root}}/instances/config'
- '{{jupyter_root}}/instances/data'
- name: docker-compose file
template:
src: './docker-compose.yml.j2'
......@@ -48,11 +49,22 @@
perms: yes
notify: restart_nginx
- name: instance configs
become: true
copy:
content: '{{ item.notebookConfig | to_json }}'
dest: '{{jupyter_root}}/instances/config/{{item.name}}.json'
owner: 1000
group: 1000
with_items: '{{instances}}'
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
docker_compose:
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