project-config/playbooks/publish/static-special.yaml
Jeremy Stanley 22a7de26e1 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
2018-02-02 20:54:35 +00:00

21 lines
578 B
YAML

- hosts: all
roles:
- fetch-tox-output
- role: fetch-sphinx-output
sphinx_output_src: "src/{{ zuul.project.canonical_name }}/doc/build/html/"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
when: zuul_success | bool
- hosts: localhost
roles:
- add-fileserver
- hosts: "{{ fileserver.fqdn }}"
gather_facts: False
tasks:
- name: Upload docs to static site
synchronize:
src: "{{ zuul.executor.work_root }}/artifacts/"
dest: "{{ fileserver.path }}/{{ static_target }}/"
when: zuul_success | bool