Use synchronize to upload to static site

The copy module does not scale well to hundreds+ of files, so
switch to rsync instead.

Change-Id: I35a006096fcded5c8e2c74d1908597e064312e04
This commit is contained in:
James E. Blair
2017-10-20 09:49:52 -07:00
parent 663b1e1baf
commit fb40f3735e

View File

@@ -12,8 +12,7 @@
- hosts: "{{ fileserver.fqdn }}" - hosts: "{{ fileserver.fqdn }}"
gather_facts: False gather_facts: False
tasks: tasks:
- name: Upload docs to static site - name: Upload docs to static site
copy: synchronize:
src: "{{ zuul.executor.work_root }}/artifacts/" src: "{{ zuul.executor.work_root }}/artifacts/"
dest: "{{ fileserver.path }}/{{ zuul.project.short_name }}/" dest: "{{ fileserver.path }}/{{ zuul.project.short_name }}/"