- hosts: all tasks: - name: Make tenant subdir file: state: directory dest: '{{ zuul.project.src_dir }}/{{ javascript_content_dir }}/t' - name: Copy the html/javascript content into subdirs shell: | CONTENT_DIR="{{ zuul.project.src_dir }}/{{ javascript_content_dir }}" mkdir $CONTENT_DIR/t/{{ item }} for f in $(find $CONTENT_DIR -type f -mindepth 1 -maxdepth 1) ; do cp $f $CONTENT_DIR/t/{{ item }} done with_items: - local - ansible - ansible-dev - openstack.org - rdoproject.org