Files
project-config/playbooks/yaml2ical/post.yaml
T
Monty Taylor fb68fc9d7b Align other tox-based project-config publish jobs
Make all of the tox-based project-config publish jobs set tox_envlist in
the job definition and use the shared run playbook. Ensure all of them
are set final: true.

Put the git changed check into tox.ini rather than the job
config.

Move the fetching if ical data into the post playbook, not the run playbook.

Change-Id: Icc69781a50bf3e131baa20f0d4ef9cb95929a390
2017-10-05 14:37:21 -05:00

30 lines
741 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/"