9b3d276dd1
During transition to Zuulv3, an error was introduced in the ICS files publication post-job, resulting in the "calendars" directory itself to be copied to $path/calendars, instead of the ICS files present in the directory. ICS files were were therefore being published to $path/calendars/calendars. This commit restores publication to $path/calendars. Change-Id: Ifebd883826341b4d4f21f2f114b0a87582845ab3
30 lines
742 B
YAML
30 lines
742 B
YAML
- hosts: all
|
|
tasks:
|
|
- name: Collect yaml2ical output
|
|
synchronize:
|
|
dest: "{{ zuul.executor.work_root }}/yaml2ical"
|
|
mode: pull
|
|
src: "src/{{ zuul.project.canonical_name }}/output/"
|
|
verify_host: true
|
|
|
|
- hosts: localhost
|
|
roles:
|
|
- add-fileserver
|
|
|
|
- hosts: "{{ fileserver.fqdn }}"
|
|
gather_facts: False
|
|
tasks:
|
|
|
|
- name: Upload index files
|
|
copy:
|
|
src: "{{ zuul.executor.work_root }}/yaml2ical/{{ item }}"
|
|
dest: "{{ fileserver.path }}/{{ item }}"
|
|
with_items:
|
|
- index.html
|
|
- irc-meetings.ical
|
|
|
|
- name: Copy calendars
|
|
synchronize:
|
|
src: "{{ zuul.executor.work_root }}/yaml2ical/calendars/"
|
|
dest: "{{ fileserver.path }}/calendars"
|