project-config/playbooks/yaml2ical/post.yaml
Jens Harbott b971ba3f8f Fix yaml2ical publishing
Only copy content from the output directory, not the directory itself.

Change-Id: I0820f83f541bd1448200608a2768bae8e009b478
2017-11-03 05:36:37 +00:00

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/"