From 22a7de26e15b3ba45029cf898f2556f7abec08ea Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Fri, 2 Feb 2018 20:54:35 +0000 Subject: [PATCH] Switch static-special from copy to synchronize According to notes in the Ansible documentation for the copy module, it "does not scale to lots (>hundreds) of files." Several of the 5 sites currently relying on the publish/static-special playbook have content numbering in the thousands of files. Other sites on the same server instead rely on the publish/static playbook which already uses synchronize instead of copy, so this should be entirely compatible. Change-Id: Iac85d906ae7c7a4666d7a5eeaa73b5a9f2ac7115 --- playbooks/publish/static-special.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/publish/static-special.yaml b/playbooks/publish/static-special.yaml index 6c7e803987..2b1bbad8b8 100644 --- a/playbooks/publish/static-special.yaml +++ b/playbooks/publish/static-special.yaml @@ -14,7 +14,7 @@ gather_facts: False tasks: - name: Upload docs to static site - copy: + synchronize: src: "{{ zuul.executor.work_root }}/artifacts/" dest: "{{ fileserver.path }}/{{ static_target }}/" when: zuul_success | bool