Use delegate_to for the zuul_return
- hosts: "{{ site_logs.fqdn }}"
roles:
- upload-logs
-
-- hosts: localhost
- tasks:
- name: Return log URL to Zuul
+ delegate_to: localhost
zuul_return:
data:
zuul:
- log_url: "http://logs.openstack.org/{{ hostvars[site_logs.fqdn]['log_path'] }}/"
+ log_url: "http://logs.openstack.org/{{ log_path }}/"
