- hosts: localhost
  roles:
    - role: add-fileserver
      fileserver: "{{ site_logs }}"
    - emit-ara-html

  post_tasks:
    - name: Copy inventory to logs dir
      copy:
        src: "{{ inventory_file }}"
        dest: "{{ zuul.executor.log_root  }}"

- hosts: "{{ site_logs.fqdn }}"
  roles:
    - upload-logs

  post_tasks:
    - name: Return log URL to Zuul
      delegate_to: localhost
      zuul_return:
        data:
          zuul:
            log_url: "http://logs.openstack.org/{{ log_path }}/"

- hosts: localhost
  roles:
    - role: add-fileserver
      fileserver: "{{ site_logs }}"
    - emit-ara-html

  post_tasks:
    - name: Copy inventory to logs dir
      copy:
        src: "{{ inventory_file }}"
        dest: "{{ zuul.executor.log_root  }}"

- hosts: "{{ site_logs.fqdn }}"
  roles:
    - role: upload-logs
      zuul_log_url: "http://logs.openstack.org"

Use zuul_return data from upload-logs role
Use zuul_return data from upload-logs role

We don't really need this as a separate task. It's generally needed with
the upload-logs role.

Change-Id: I205b99d0365d2f80c9f150990604a66ec16000e2
Depends-On: I987b1060acd3e6d96519010673fd21eba781f162
