Merge "Use copy instead of symlink for multi-tenant dashboard"

This commit is contained in:
Zuul 2018-08-09 21:09:48 +00:00 committed by Gerrit Code Review
commit 0a81b7d104
1 changed files with 12 additions and 5 deletions

View File

@ -1,11 +1,18 @@
- hosts: all
tasks:
- name: Make symlinks to allow multi-tenant preview to work
- name: Make tenant subdir
file:
src: .
dest: '{{ zuul.project.src_dir }}/{{ javascript_content_dir }}/{{ item }}'
state: link
state: directory
dest: '{{ zuul.project.src_dir }}/{{ javascript_content_dir }}/t'
- name: Copy the html/javascript content into subdirs
shell: |
mkdir {{ zuul.project.src_dir }}/{{ javascript_content_dir }}/t/{{ item }}
cp {{ zuul.project.src_dir }}/{{ javascript_content_dir }}/* {{ zuul.project.src_dir }}/{{ javascript_content_dir }}/t/{{ item }}
with_items:
- local
- t
- ansible
- ansible-dev
- openstack.org
- rdoproject.org